On Sat, Jan 29, 2005 at 07:41:28PM +0000, Richard Kettlewell wrote:
Chris Green chris@areti.co.uk writes:
When I issue an 'ls -a' or an 'ls -al' I expect all the hidden files (those with a . prefix) to appear before the others but my latest upgrade seems to have stopped this happening. I much prefer to see the hidden files separately, can I get the old sort order back somehow?
I've unset all the LS options in my environment and ls isn't aliased.
Sounds like you have LC_COLLATE (or LC_ALL or LANG) set wrong.
$ ls -a | head -5 ./ ../ .svn/ CHECKLST.txt LATEST.VER $ LC_COLLATE=en_GB ls -a | head -5 ./ ../ be_all.c be_none.c be_nossh.c
I have both LC_ALL and LANG set to en_GB
Setting LC_COLLATE to en_GB as well doesn't change things.
The sorting is correct, it's just that leading '.'s are ignored.