bug in sort(1) ?

Carlo Strozzi <[email protected]>
Newsgroups gmane.comp.gnu.textutils.bugs
Organization ScriptaWorks.COM
Message-ID <[email protected]>
Some background information first:

$ uname -a
Linux tango 2.4.18 #4 Tue May 7 15:38:55 CEST 2002 i686 unknown


$ cat /etc/issue
Debian GNU 3.0 (Woody)

(but it occurs also with Red Hat 7.3, a.k.a. Valhalla)


$ 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.


$ ldd /usr/bin/sort
        libc.so.6 => /lib/libc.so.6 (0x4001c000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)


$ /path/to/old/stuff/sort --version
sort - GNU textutils 1.13

$ ldd /path/to/old/stuff/sort
      libc.so.5 => /lib/libc.so.5 (0x40010000)


And here's the bug:

$ cat datafile
100b_015.m2v
cact_015.m2v
susi_015.m2v
bbc3_015.m2v
Daniela.mpeg


$ /usr/bin/sort datafile
100b_015.m2v
bbc3_015.m2v
cact_015.m2v
Daniela.mpeg
susi_015.m2v


$ /path/to/old/stuff/sort datafile
100b_015.m2v
Daniela.mpeg
bbc3_015.m2v
cact_015.m2v
susi_015.m2v


As you can see, sort 1.13 behaves correctly, while the newer 2.0 doesn't.

cheers,
Carlo
-- 
For easier reading please set the Courier font.
Messages larger than 30 KB may not receive immediate attention.
Freedom for Business: http://swpat.ffii.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.