gnu.bash.bug
[Top] [All Lists]

LC_COLLATE not used for filename expansion

Subject: LC_COLLATE not used for filename expansion
From: "Chris F.A. Johnson" <cfajohnson@xxxxxxxxx>
Date: Wed, 16 Jul 2008 18:41:03 +0000
Newsgroups: gnu.bash.bug
With LC_COLLATE set to a locale with case-insensitive collation,
filename expansion does not use the locale. It does with LC_ALL.

In an empty directory:

$ touch a B c D e F
$ echo *
B D F a c e
$ LC_COLLATE=en_us
$ echo *
B D F a c e
$ LC_ALL=en_us
$ echo *
a B c D e F


-- 
   Chris F.A. Johnson, webmaster         <http://Woodbine-Gerrard.com>
   ===================================================================
   Author:
   Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)

<Prev in Thread] Current Thread [Next in Thread>