bug-coreutils
[Top][All Lists]
Advanced

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

Bug or change?


From: Fredrik Andreasson
Subject: Bug or change?
Date: Tue, 18 Sep 2007 09:43:37 +0200
User-agent: Thunderbird 2.0.0.6 (X11/20070728)

Hi, maybe this it a bug?


Here i have a file, with two columns with diffrent values, now i want to use sort them with columns, and with number.

See the file how it looks like.
address@hidden ~]$ cat file
1 2
1 2
3 5
3 5
3 5
3 5
3 5
2 3
2 3
2 3
2 3
2 3
2 3
4 5
1 1
1 1
0 0
0 0
0 0
0 0
0 0
0 0
0 0
---
address@hidden ~]$ sort --version
sort (GNU coreutils) 5.97
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by Mike Haertel and Paul Eggert.

-----

Now i use sort.
address@hidden ~]$ cat file|sort -nr +2
sort: open failed: +2: No such file or directory

*But when i use an old sort version, it works!
address@hidden cat file|sort_1 -nr +2
4 5
3 5
3 5
3 5
3 5
3 5
2 3
2 3
2 3
2 3
2 3
2 3
1 2
1 2
1 1
1 1
0 0
0 0
0 0
0 0
0 0
0 0
0 0
---
address@hidden ~]$ sort_1 --version
sort (coreutils) 4.5.3
Written by Mike Haertel and Paul Eggert.

Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Best Regards
Fredrik Andreasson


--
Fredrik Andreasson Address: IT-stöd,Uppsala universitet Phone: +46 18 4717745 Box 887
Cellphone +46 70 1679086                   SE-751 08  UPPSALA
mailto:address@hidden        Sweden
http://www.its.uu.se




reply via email to

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