bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: possible bug


From: Eric Blake
Subject: Re: possible bug
Date: Fri, 15 May 2009 06:29:01 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Bregola Cristiano on 5/15/2009 3:17 AM:
> On red hat enterprise linux 5.1 (with ksh) the expression below is case in 
> sensitive:
> 
> variable=myworld
> expr $variable : "[A-Z]*"
> result= 7
> 
> Is correct??

Yes, if your locale states that you are using case-insensitive collation.
http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#Sort-does-not-sort-in-normal-order_0021

Actually, your collation order is probably something like AaBbCc...YyZz,
in which case 'z' is omitted by the above expression.

> 
> On aix or other unix the expression is case SENSITIVE!

Only if they chose a different locale, such as by 'export LC_ALL=C'.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkoNYA0ACgkQ84KuGfSFAYDqjgCgtoNg63tckhI+7C2LkZuCXr0e
MXIAoLvqzdgA7RWlbuTlX3kbUNPNQxwr
=PvCs
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]