[EMAIL PROTECTED] wrote: > The expansion of the filename pattern "*.[a-z]* matches files with > upper case after the period, not just lower case, even though the > "nocaseglob" is set to off, when the LANG variable is set to > "en_US.UTF-8".
Yes. What you are seeing is not a bug in bash but is a configuration selected by the LANG=en_US.UTF-8 locale setting. When that locale is in effect the collation order is [aAbBcC...zZ] therefore when you specify [a-z] you are getting [aAbBcC...z] all of the lower case letters plus almost all of the upper case letters minus the Z. This not only affects bash but all system utilities that use the locale sort ordering. You will see this with ls, sort, grep, etc. My personal setting is the following. This selects a UTF-8 locale in general but overrides the collation sequence to specify a POSIX standard sort ordering. YMMV. export LANG=en_US.UTF-8 export LC_COLLATE=C Bob _______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash