When did linux become caseless?

Matt Lawrence matt.lawrence at virgin.net
Fri Jun 15 11:37:25 BST 2007


Dirk Koopman wrote:
> Subject says it all really. Just did "rm [A-Z]*" and had a load of
> files   with lower case first letters removed as well. Same thing
> happens for "ls -d [A-Z]*"
>
> I am guessing that this some bash argument expansion option. Any ideas
> as to how to get the correct behaviour?
ls -d [[:upper:]]*

I think this might have to do with LC_COLLATE, the order of the
characters in a range expression.

on my system:

$ ls -d [a-c]*
bin

$ ls -d [a-d]*
bin  Changelog

which seems to suggest that the order is aAbBcCdD ...


Matt


More information about the london.pm mailing list