-----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 [email protected] -----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----- _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
