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

Re: ls sorting order change



Camaleón wrote:
On Tue, 01 May 2012 15:10:23 -0400, Dan B. wrote:
...

On a fresh Squeeze installation, ls seems to ignore leading "."
characters (it no longer lists all "hidden" files adjacent to each
other) and to ignore capitalization differences.

(...)

Can you post a sample of the command you issued and the ouput you got?

It was like (using made-up names):

.aaa
bbb
ccc
DDD
EEE
.fff

when I expected:

.aaa
.fff
DDD
EEE
bbb
ccc


(The first order is a typical order for English (case-insensitive, and
ignoring punctuation), so now it makes sense that my default locale
setting (LANG=en_US.UTF-8) yielded that order.

The second order is plain old ASCII(/ISO-8859-x/Unicode) character
order with no special treatment (ignoring or case-mapping) of
characters--and setting LC_ALL=C (or LC_COLLATE=C) does indeed yield that
order.

I guess now I need to figure out where I might like to see things in
the "new" order vs. where I still want to see things in LC_COLLATE=C
order.)

Daniel





Reply to: