Subject: Re: different behavior of sort
Sheila Yao writes:
> sort -n -k2.1,2.4 /tmp/sort.out
> /dev/emcpowera 47G 39G 7.8G 84% /DB1/DW/data9
The sort key is probably not what you think it is. I have marked it
for you. Since the sort key is identical in all
Sheila Yao writes:
> sort -n -k2.1,2.4 /tmp/sort.out
> /dev/emcpowera 47G 39G 7.8G 84% /DB1/DW/data9
The sort key is probably not what you think it is. I have marked it
for you. Since the sort key is identical in all lines, sort has used
as a last resort the wh
t]
Sent: Monday, January 18, 2010 9:54 PM
To: Sheila Yao
Cc: bug-coreutils@gnu.org
Subject: Re: different behavior of sort
According to Sheila Yao on 1/18/2010 12:32 PM:
> At one box, I've sort version 5.2.1 and sort works correctly. At another box
> with sort 5.97, it doesn't wor
According to Sheila Yao on 1/18/2010 12:32 PM:
> At one box, I've sort version 5.2.1 and sort works correctly. At another box
> with sort 5.97, it doesn't work correctly.
Both of those are quite old. The latest stable version is 8.4.
> It works correctly for this output:
It probably works corr
At one box, I've sort version 5.2.1 and sort works correctly. At another box
with sort 5.97, it doesn't work correctly.
Please see below.
sort (coreutils) 5.2.1
Written by Mike Haertel and Paul Eggert.
Copyright (C) 2004 Free Software Foundation, Inc.
It works correctly for this output:
cat /tmp