Re: off topic: sort problem

2018-11-21 Thread Cameron Simpson
On 21Nov2018 22:12, Amadeus W.M. wrote: After reading the man more carefully, an end position should be specified for the key: "KEYDEF is F[.C][OPTS][,F[.C][OPTS]] for start and stop position, where F is a field number and C a character position in the field; both are origin 1, and the stop

Re: off topic: sort problem

2018-11-21 Thread Amadeus WM
After reading the man more carefully, an end position should be specified for the key: "KEYDEF is F[.C][OPTS][,F[.C][OPTS]] for start and stop position, where F is a field number and C a character position in the field; both are origin 1, and the stop position defaults to the line's end." He

Re: off topic: sort problem

2018-11-21 Thread Cameron Simpson
On 21Nov2018 21:47, Amadeus W.M. wrote: I've been using sort for years and I just ran into something I've never seen and I can't explain. [...] I see some weirdness too, but mine doesn't match yours. (Ubuntu 16.04 here, though.) I note that sort(1) says: *** WARNING *** The locale

off topic: sort problem

2018-11-21 Thread Amadeus WM
I've been using sort for years and I just ran into something I've never seen and I can't explain. cat spam AA|3334 A|3826 cat spam | sort -k1 -t"|" # this works! A|3826 AA|3334 Now cat junk AA|def A|xyz cat junk | sort -k1 -t"|" # this doesn't AA|def A|xyz The tw