FEATURE REQUEST: ls -- Document that LC_* variable affects sort order
From:
Jari Aalto
Subject:
FEATURE REQUEST: ls -- Document that LC_* variable affects sort order
Date:
Fri, 18 Dec 2009 00:00:05 +0200
User-agent:
Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
Cf. http://bugs.debian.org/561458
$ ls -1
20-name-change+my.21-compile-fixes.dpatch
20-name-change~my.21-compile-fixes.patch
20-name-change=my.21-compile-fixes.patch
address@hidden
20-name-change.patch
According to ASCII table http://asciitable.com/ the items are not
presented in correct order. In ASCII, that would be:
$ ls -1
20-name-change+my.21-compile-fixes.dpatch
20-name-change.patch
20-name-change=my.21-compile-fixes.patch
address@hidden
20-name-change~my.21-compile-fixes.patch
SUGGESTION
The LC_* variables seem to affect the listing order, but this is not
mentioned in the manual page. Please add following paragraph, as seen in
sort(1), to read:
*** WARNING *** The locale specified by the environment affects
sort order. Set LC_ALL=C to get the traditional sort order that
uses native byte values.
Jari