bug-textutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug in sort, or confusion on my part


From: Greg Lindahl
Subject: bug in sort, or confusion on my part
Date: Fri, 22 Jun 2001 04:26:25 -0400
User-agent: Mutt/1.2.5i

bash$ more example
109 bar
111 b
111 a
1 10
9 foo
bash$ sort -k 1,1rn -k 2,2 example
111 a
111 b
1 10
109 bar
9 foo

It seems that the "n" is making sort ignore the separator, so it sorts
"1 10" as if it were the number 110. That doesn't seem to correspond
to the "info" page. It's OK without the "n".

On my sgi:

> sort -k 1,1rn -k 2,2 sort
111 a
111 b
109 bar
9 foo
1 10

version:

bash$ sort --version
sort (GNU textutils) 2.0a
Written by Mike Haertel.
[...]

bash$ rpm -q -f `which sort`
textutils-2.0a-2

This is a vanilla redhat 6.2 system.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]