bug#6377: Subject: inaccurate character class processing
From:
Pierre Gaston
Subject:
bug#6377: Subject: inaccurate character class processing
Date:
Tue, 8 Jun 2010 17:24:11 +0300
On Tue, Jun 8, 2010 at 4:48 PM, Iosif Fettich <address@hidden> wrote:
...
>
> Â Â Â Â ls [a-z]*
>
> Â Â Â Â outputs
>
>     a  A  b  B  z
>
> Â Â Â Â (why 'A' and 'B' - and/or where's 'Z'...?!!)
>
>
it's a classic problem with the locale, the range [a-z] contains the
capital letters
for some  locale definitions ie a-z is aAbB ....z (Z is after the z)
As a workaround  you can export LC_COLLATE=C, or maybe use [[:lower:]]
instead of [a-z]