Bug#367891: sort: numerical sort on several keys does not work

2007-01-13 Thread Frans Pop
I ran into basically the same confusion as Eugen while trying to figure out some bugs in busybox sort and comparing the output to GNU sort. I found the following page which gives valuable pointers to why the syntax "-k2,3n", or even worse "-k2nr,3n", are not supported: http://www.gnu.org/software

Bug#367891: sort: numerical sort on several keys does not work

2006-05-18 Thread Eugen Dedu
Michael Stone wrote: On Thu, May 18, 2006 at 05:55:03PM +0200, Eugen Dedu wrote: snoopy:~/work$ cat test-sort 12 3 12 24 snoopy:~/work$ sort -n -k1,2 test-sort 12 24 12 3 (23)osgiliath:/tmp> sort -n -k1,1 -k2,2 test-sort 12 3 12 24 I understand, I'm sorry, I didn't know how to work with keys

Bug#367891: sort: numerical sort on several keys does not work

2006-05-18 Thread Michael Stone
On Thu, May 18, 2006 at 05:55:03PM +0200, Eugen Dedu wrote: snoopy:~/work$ cat test-sort 12 3 12 24 snoopy:~/work$ sort -n -k1,2 test-sort 12 24 12 3 (23)osgiliath:/tmp> sort -n -k1,1 -k2,2 test-sort 12 3 12 24 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe".

Bug#367891: sort: numerical sort on several keys does not work

2006-05-18 Thread Eugen Dedu
Package: coreutils Version: 5.94-1 Severity: normal Hi, snoopy:~/work$ cat test-sort 12 3 12 24 snoopy:~/work$ sort -n -k1,2 test-sort 12 24 12 3 snoopy:~/work$ echo $LC_ALL C snoopy:~/work$ Is 24 smaller than 3?! Friendly, Eugen Dedu -- System Information: Debian Release: testing/unstable