As reported in bug 5980 and 6000 about tcsh, the following happens also with bash2 % touch A B C a b c % echo [A-Z] A a B b C c % echo [a-z] a B b C C this depends on the locale "sorting rules"; I don't know if it is a feature, as keld says in bug 6000 report, but shurely it can be confusing since the ascii order is clear to everybody while the ISO locale ordering specification is not so well known and public. The problem could be solved if "character class" would be implemented as described in the bash2 manual. But if I try % touch A B C D E a b c d e % echo [:upper:] [:lower:] e e It happens as if the 'e' between [] is matched, instead of the character classes. Shoud the "character class" pattern be activated some how via some options I am missing, or the fact that it is not working for me is simply a bug ?
I've to ask you sorry, the last problem was a problem of escaping echo [[:alha::]] works as espected...