bug-fileutils
[Top][All Lists]
Advanced

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

Re: ls bug report.


From: Albert Schueller
Subject: Re: ls bug report.
Date: Wed, 8 Aug 2001 10:55:25 -0700
User-agent: Mutt/1.2.5i

Quoting Albert Schueller (address@hidden):
> 
> After a recent upgrade to Redhat 7.1 I'm noticing the following annoying
> behaviour in ls.  For many years now I've named directories starting
> with capital letters so that in a standard file listing the directories come
> first and then the rest of the files.  According to the ls man page this
> is the default sorting mechanism (i.e. "ascii order" all capital letters
> ranked before all lower case letters).  Now however, ls is sorting
> the files and directories in strict alphabetical order, ignoring case.
> As I mentioned, I'm using Redhat 7.1 which apparently shipped with the
> following version of ls,
> 
> 
> ls (GNU fileutils) 4.0.36
> Written by Richard Stallman and David MacKenzie.
> 
> Copyright (C) 2000 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> 
> Since ls is not displaying the behaviour described in its man/info page I'm
> reporting this as a bug.

Figured it out.  ls is locale aware and redhat changed the locale from
"C" in previous versions to "US English".  Setting the environment
variable "LC_COLLATE" back to "C" fixes the problem.  I didn't realize
that ls was locale aware.

A



reply via email to

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