[A-Z]* oddities

Behdad Esfahbod behdad at cs.toronto.edu
Mon Feb 2 18:15:01 UTC 2004


This is totally expected :).

For what you want try LANG=C echo [A-Z]* ...

In LANG=en_US.UTF-8 which is the default, both 'A' and 'a' sort
before 'B' and 'b'.

behdad


On Mon, 2 Feb 2004, Luciano Miguel Ferreira Rocha wrote:

>
> Hi,
>
> On fedora devel I get the following unexpected behaviour:
>
> --------------------------------------------------------------------------
>
> $ echo [A-Z]*
> cd3 irate kernel-2.4.22-1.2166.nptl.i686.rpm list Mail mine opt selUpgrade
> sistema tmp uf work xtools_1.1.zip
> $ echo [a-z]*
> advsh asus cd3 irate kernel-2.4.22-1.2166.nptl.i686.rpm list Mail mine opt
> selUpgrade sistema tmp uf work xtools_1.1.zip
> $ ls | egrep '^[A-Z]'
> cd3
> irate
> kernel-2.4.22-1.2166.nptl.i686.rpm
> list
> Mail
> mine
> opt
> selUpgrade
> sistema
> tmp
> uf
> work
> xtools_1.1.zip
> $ ls | egrep '^[a-z]'
> advsh
> asus
> cd3
> irate
> kernel-2.4.22-1.2166.nptl.i686.rpm
> list
> Mail
> mine
> opt
> selUpgrade
> sistema
> tmp
> $ echo [ABCDEFGHIJKLMNOPQRSTUVWXYZ]*
> Mail
>
> uf
> work
> xtools_1.1.zip
>
> --------------------------------------------------------------------------
>
> Regards,
> Luciano Rocha
>
>
>





More information about the fedora-devel-list mailing list