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

Re: ls sort order again



The environment variables LANG and LC_COLLATE control sort order and regex pattern matching expansion.
See files: /etc/environment and possibly /etc/profile (if edited...)
LC_COLLATE is set via LANG (or LANGUAGE) unless overridden via the shell.
Use the command "locale" to see the current values.
I have always used LANG="C" or "POSIX" which pays attention to the case:
Readme
SRC
bin
palm
sco

If you want the other rules use LANG=en_US (or just for the sort order, LC_COLLATE="en_US") to get:
bin
palm
Readme
sco
SRC

Later,
Larry Irwin



Reply to: