bug-bash
[Top][All Lists]
Advanced

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

Re: bash 2.05b.0(1)-release on Debian Sarge: [A-Z]* expands as [A-Za-z]*


From: Eric Blake
Subject: Re: bash 2.05b.0(1)-release on Debian Sarge: [A-Z]* expands as [A-Za-z]* :-(
Date: Mon, 28 Jan 2008 15:10:04 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

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

According to Alan Mackenzie on 1/28/2008 1:58 PM:
|
| .  Sadly, ls ignores my intentions and undiscerningly prints a list of
| all files whose names begin with a letter, big or small.

Actually, it follows your (unintended) directions, thanks to your current
locale, which does a collation sort.  You aren't doing [A-Za-z], but
[AaBb...Z], because your current locale prefers case-insensitive
collation.  Change your locale (try LC_COLLATE=C or LC_ALL=C) to see the
difference.

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

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

iD8DBQFHnlK784KuGfSFAYARAgrVAJkBB52JX8Z3KU82GUDWGR+VubkvRwCeP/Q+
bUcUGQjd0L3iZ0oNNp/SC/M=
=IJqX
-----END PGP SIGNATURE-----




reply via email to

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