[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug (feature?) in ls
From: |
Eric Blake |
Subject: |
Re: bug (feature?) in ls |
Date: |
Mon, 03 Apr 2006 04:27:53 +0000 |
> When I type "ls -al", I have always expected to see dot files at the top
> of the listing and regular files at the bottom. This version (5.94) does
> not follow that convention any more and it simply ignores the leading dot
> when ordering the output.
Feature, not a bug. ls sorting obeys your locale settings, and some locales
(including en_US) ignore punctuation when sorting.
http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#The-ls-command-is-not-listing-files-in-a-normal-order_0021
Try running 'LC_ALL=C ls -al' instead.
--
Eric Blake