bug#9995: problem about sort -u -k

2011-11-09 Thread
thanks for you reply. if i want to use the entire line as a key, and sort by the third field, whether should i use sort -u -k3 -k1 -k2 a to do that? On Wed, Nov 9, 2011 at 03:45, Eric Blake wrote: > On 11/08/2011 11:54 AM, Eric Blake wrote: >>> >>> 22:41:39#tp#~> /usr/local/bin/sort -u -k1,3 a >>

bug#9995: problem about sort -u -k

2011-11-08 Thread
when i use sort command with -k and -n together, i got the wrong result: 22:41:21#tp#~> LC_ALL=C 22:41:39#tp#~> /usr/local/bin/sort -u -k1,3 a 1 a q 1 a w 3 a w 22:41:48#tp#~> /usr/local/bin/sort -u -k3 a 1 a q 1 a w 22:41:49#tp#~> cat a 1 a q 1 a w 3 a w 22:41:52#tp#~> /usr/local/bin/sort --versio