bug-coreutils
[Top][All Lists]
Advanced

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

Re: 'ls' command sort order


From: Bob Proulx
Subject: Re: 'ls' command sort order
Date: Mon, 12 May 2003 20:54:51 -0600
User-agent: Mutt/1.3.28i

Scott Coburn wrote:
> How do I get the 'ls' command to sort filenames the way it
> used to do?  It used to not mix the dot files in with the not-dot
> files, and it used to not mix the upper and lower case file
> names.

You must be using a RH or derived system.  :-(

> I realize that this is probably not a 'bug' but I don't know who
> else to ask this question of.  I looked through the man page,
> the info page, I even looked at the source code, and did a
> search in Google, with no luck.

Thanks for the report.  You have hit a common ailment.  So often that
a standard reply has been prepared.  Please read this section on sort
in the FAQ.  Look for "not sorting in normal order" This is not a
problem with GNU sort but with your 'locale'.  GNU sort is behaving as
required.

  http://www.gnu.org/software/fileutils/doc/faq/

You can see which locale you are configured to use with the 'locale'
command.

  locale

Typically this is set with the LANG variable.  You can unset lang to
return to the built in standard default and I believe all sorting
operations will return to what you expect.

  unset LANG
  locale

If that is not your problem then please send another followup to the
list.  But I am pretty sure this is your problem.

Bob




reply via email to

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