When I upgraded one of our machines to RedHat 6.2, I discovered that
sort version 2.0a with "-n" option is broken.  Below is a typescript
showing the misbehavior as well as the correct behavior of version
2.0.  The new machine is identified as rh-6.2, the old one as rh-6.1.

Other observations: The sort program also runs much slower than normal
when exhibiting this bug.  The misbehavior goes away if the input
lines have leading space.


Script started on Tue May 30 09:36:50 2000
rh-6.2:~> uname -a
Linux rh-6.2 2.2.14-12 #1 Tue Apr 25 13:04:07 EDT 2000 i686 unknown
rh-6.2:~> sort --version
sort (GNU textutils) 2.0a
Written by Mike Haertel.

Copyright (C) 1999 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.
rh-6.2:~> cat randnos.10
24
865
21
128
158
59
718
729
878
442
rh-6.2:~> sort -n randnos.10
442
158
865
24
128
21
718
59
878
729
rh-6.2:~> exit
Script done on Tue May 30 09:37:10 2000
Script started on Tue May 30 09:36:37 2000
rh-6.1:~> uname -a
Linux rh-6.1.dsm.fordham.edu 2.2.12-20 #1 Mon Sep 27 10:25:54 EDT 1999 i586 unknown
rh-6.1:~> sort --version
sort (GNU textutils) 2.0
Written by Mike Haertel.

Copyright (C) 1999 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.
rh-6.1:~> sort -n randnos.10
21
24
59
128
158
442
718
729
865
878
rh-6.1:~> exit

Script done on Tue May 30 09:36:58 2000

-- 

Bob Moniot
Fordham University               email:  [EMAIL PROTECTED]
Fordham College Lincoln Center   URL:    http://www.dsm.fordham.edu/~moniot/
New York, NY  10023              phone:  (212) 636-6311

Reply via email to