On Wednesday 2009 January 14 11:43:37 Josef Wolf wrote:
I just noticed a really serious bug in bash filename globbing:
$ echo /B* $ echo /[A-C]* /bin /boot
This is on an ext3 filesystem, which should clearly be case-sensitive!
What's your locale settings? [A-C] means different things depending on your LC_COLLATE setting. It might mean [ABC], [AaBbC], [AbBcC], or even larger sets of characters (e.g., involving accents) If you want [A-C] to mean [ABC] you should set LC_COLLATE to "C" or "POSIX".
BTW: I found out about this bug by running
$ rm -rf /some/dir/[A-Z]*
That's unfortunate, but it's not a bug. -- Boyd Stephen Smith Jr. ,= ,-_-. =. bss@iguanasuicide.net ((_/)o o(\_)) ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-' http://iguanasuicide.net/ \_/