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.
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
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.
Chris Green chris@areti.co.uk writes:
I have both LC_ALL and LANG set to en_GB
Yes, this is the problem.
Setting LC_COLLATE to en_GB as well doesn't change things.
On Sun, Jan 30, 2005 at 05:07:26PM +0000, Richard Kettlewell wrote:
Chris Green chris@areti.co.uk writes:
I have both LC_ALL and LANG set to en_GB
Yes, this is the problem.
So what should I set them to? It took me long enough to get to a setting which shows accented characters correctly.
Chris Green chris@areti.co.uk writes:
Richard Kettlewell wrote:
Chris Green chris@areti.co.uk writes:
I have both LC_ALL and LANG set to en_GB
Yes, this is the problem.
So what should I set them to? It took me long enough to get to a setting which shows accented characters correctly.
Set the individual LC_ variables rather than LC_ALL/LANG. 'man locale' has a list.