I've been analyzing a foreign script and has come across the following line:
And I can't understand how `LC_COLLATE=1' influences the behavior of the `sort' utility. I mean it is usually written `LC_COLLATE=C sort' in order to apply the default sort order. But how does `LC_COLLATE=1' affect the behavior of `sort' ? And what does `1' mean in this case? I've tried to search in the Internet and through manual pages but couldn't find anything explaining this.
I tried to get a clue too, but couldn't find anything helpful. Maybe it is a kind of typo. Did you try it with C instead of 1 and check if there is the same output on multiple runs?
Maybe it is not worth the time searching for an description. All man pages state that there is usually used some code for localization so 1 might stand for none, or default like C or... idk.
1. I have created following files in both AIX & Linux
touch a A b B c C x X y Y z Z
2. In AIX
$ LC_COLLATE=en_US ; export LC_COLLATE
$echo
$ a b c x y z
3. In LINUX
$ LC_COLLATE=en_US ; export LC_COLLATE
$ echo
$ a A b B c C x X y Y z
Could anyone please explain the... (5 Replies)