[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
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]