case insensitive glob listing in zsh -


i have following code:

    $ print -l backgrounds/**/*.((#i)jpg|jpeg|gif|webp|png|svg|xcf|cur|ppm|pcd) 

the intention list image file indifernet of case of file termination.

but code seems not functional because won't list files whit uppercase endings. can explain error in above code example?

thanks in advance.

you need #i apply everything, not jpg. can use:

$ print -l backgrounds/**/*.(#i)(jpg|jpeg|gif|webp|png|svg|xcf|cur|ppm|pcd) 

make sure have done:

set -o extended_glob 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -