bug-fileutils
[Top][All Lists]
Advanced

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

Re: odd ls sorting


From: Bob Proulx
Subject: Re: odd ls sorting
Date: Fri, 19 Sep 2003 09:16:53 -0600
User-agent: Mutt/1.3.28i

David Christopher Asher wrote:
> It's not ordered by extension, or strictly by filename.  It seems some odd
> combination where it ignores the hyphen.  Any clue?

Check your LANG variable which sets locale.  RH does not give you the
option not to set this variable and therefore it surprises people when
RH systems sort with a non-standard sort order.  Therefore the first
guess is that your locale is specifying a dictionary sort order
instead of a standard sort order.

  locale

Here is a semi-standard reply:

Please read this faq, look for "Sort does not sort" for the entry in
question.

  http://www.gnu.org/software/coreutils/faq/coreutils-faq.html

See the standards documentation for more information on the locale  
variables with regards to sort.

  http://www.unix-systems.org/single_unix_specification_v2/xcu/sort.html

Bob




reply via email to

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