RE: different behavior of sort

2010-01-19 Thread Sheila Yao
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

Re: different behavior of sort

2010-01-19 Thread Andreas Schwab
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

RE: different behavior of sort

2010-01-19 Thread Sheila Yao
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

Re: different behavior of sort

2010-01-18 Thread Eric Blake
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

different behavior of sort

2010-01-18 Thread Sheila Yao
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