bug-bash
[Top][All Lists]
Advanced

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

Re: one last collating sequence data point


From: Chet Ramey
Subject: Re: one last collating sequence data point
Date: Sat, 27 Jan 2007 14:43:16 -0500
User-agent: Thunderbird 1.5.0.9 (Macintosh/20061207)

Bruce Korb wrote:
> In the listings below, two programs are involved:  "ls" and "bash".
> I am inclined to believe that "bash" treats a missing LC_COLLATE
> as "en_US" and "ls" treats it as "C".  If there is such a thing as
> an invisible (not in environment variables) "system default locale",
> then "ls" is wrong, otherwise "bash" is wrong.  One of the two has
> to be wrong.
> 
> (Just to be clear:  bash is selecting files with "[a-z]*" and then
> ls sorts them based on some collating sequence.  The sorting
> collating order should be identical to the selection order.)
> 
> $ unset LC_COLLATE

If LC_COLLATE is unset, LC_ALL and LANG both affect the collating order.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                       Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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