[Top][All Lists]

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

Re: ls behavior

From: Bob Proulx
Subject: Re: ls behavior
Date: Wed, 3 Oct 2001 23:35:06 -0600


> GNU ls by default lists file names in alphabetic order
> regardless of case.
> Any possibility of adding an option that lists uppercase
> names first?

Thanks for the report.  It matches a common pattern.  This is not due
to a bug, but to the fact that you have set environment variables that
direct the program to use locale specific sorting tables.  You or your
vendor have probably set environment variables like LANG, LC_ALL, or
LANG to en_US.  There appears to be a problem with that table which is
not part of the GNU program but part of your vendor's system release.

Unset them, and then set LC_ALL to POSIX

  # If you use bash or some other Bourne-based shell,
  export LC_ALL=POSIX

  # If you use a C-shell,
  setenv LC_ALL POSIX

and it will then work the way you expect.

See the standards documentation for more information on LC_*



reply via email to

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