On 29/10/17 11:40, 積丹尼 Dan Jacobson wrote:
> < P.S., Yes indeed I had LC_COLLATE=C so maybe --debug should mention
> < where in the environment it made it choices from too.
>
> Ah, like you said
>
> $ LC_ALL=en_CA.UTF-8 sort --debug < /dev/null
> sort: using ‘en_CA.UTF-8’ sorting rules
>
>
< P.S., Yes indeed I had LC_COLLATE=C so maybe --debug should mention
< where in the environment it made it choices from too.
Ah, like you said
$ LC_ALL=en_CA.UTF-8 sort --debug < /dev/null
sort: using ‘en_CA.UTF-8’ sorting rules
$ LC_ALL=C sort --debug < /dev/null
sort: using simple byt
Your answer is absolutely pure gold for a new page linked from
‘--debug’
Highlight the portion of each line used for sorting. Also issue
warnings about questionable usage to stderr.
in the Info manual! Please don't let it go to waste sitting in the bug
tracker. Perhaps call it Debuggin
tag 29044 notabug
close 29044
thanks
Hello,
There are few issues at hand. Answering out of order:
> $ sort -k 2n -k 3n --debug file.txt
[...]
> Also the user is confused if
>
> is a "key 3", or just a separator.
>
> Therefore please say
> ": key 1" or "1" etc. at the end of eac
$ sort -k 2n -k 3n --debug file.txt
sort: using simple byte comparison
sort: key 1 is numeric and spans multiple fields
sort: key 2 is numeric and spans multiple fields
41 011 92.3 亞太
___
41 011 97.1 大漢
___
OK but they look like they only span one fie