In bash, I tried
ls [a-z]*
and expected to list all the files with filename starts with small case alphabet. But why the files with name starts with big case alphabet are also shown?
>ls [a-z]*
D e
>
In case needed, the bash version:
bash --version GNU bash, version 4.1.5(1)-release (i486-pc-linux-gnu) Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
LC_COLLATEsetting In some (many?) locales,[a-z]includes "aAbB...yYz" but not "Z". You can enable extended globbing usingshopt -s extglob. I get different results for[a-z]and[[:lower:]]on Cygwin. – Dennis Williamson Mar 1 '11 at 14:44