bug-textutils
[Top][All Lists]
Advanced

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

latest GNU sort bug tests


From: PhiloVivero
Subject: latest GNU sort bug tests
Date: Sun, 15 Apr 2001 02:13:27 -0700

GNU Sort seems to have a bug??? Here's the latest test:

If I replace 'thumbnail' with 'extension' then it works just fine. Also, if
you change "l" to "a" it works fine. Also, if you change "l" to "o" it still
fails.

It's as though the l or o is interpreted as 1 or 0, and then sorting breaks.
This has been the oddest bug I've seen in a long time.

***use 'extension'***
address@hidden ~/tmp/sorttest] :) sort st2.txt
./build/pcd015.extension4.jpg
./build/pcd031.extension4.jpg
./build/pcd031l.extension4.jpg <-- ok
./build/pcd032.extension4.jpg
./pcd015.jpg
./pcd031.jpg
./pcd031l.jpg <--
./pcd032.jpg
address@hidden ~/tmp/sorttest] :) vim st2.txt
***use 'thumbnail'***
address@hidden ~/tmp/sorttest] :) sort st2.txt
./build/pcd015.thumbnail4.jpg
./build/pcd031l.thumbnail4.jpg <-- !!!
./build/pcd031.thumbnail4.jpg
./build/pcd032.thumbnail4.jpg
./pcd015.jpg
./pcd031.jpg
./pcd031l.jpg <--
./pcd032.jpg
address@hidden ~/tmp/sorttest] :) vim st2.txt
***try with letter 'o' instead of letter 'l'***
address@hidden ~/tmp/sorttest] :) sort st2.txt
./build/pcd015.thumbnail4.jpg
./build/pcd031o.thumbnail4.jpg <-- !!!
./build/pcd031.thumbnail4.jpg
./build/pcd032.thumbnail4.jpg
./pcd015.jpg
./pcd031.jpg
./pcd031o.jpg <--
./pcd032.jpg
address@hidden ~/tmp/sorttest] :) vim st2.txt
***try with letter 'h'***
address@hidden ~/tmp/sorttest] :) sort st2.txt
./build/pcd015.thumbnail4.jpg
./build/pcd031h.thumbnail4.jpg <-- ok
./build/pcd031.thumbnail4.jpg
./build/pcd032.thumbnail4.jpg
./pcd015.jpg
./pcd031h.jpg <--
./pcd031.jpg
./pcd032.jpg

***look... change 'thumbnail' to 'ehumbnail' and it works***
address@hidden ~/tmp/sorttest] :) sort st2.txt
./build/pcd015.ehumbnail4.jpg
./build/pcd031.ehumbnail4.jpg
./build/pcd031l.ehumbnail4.jpg <-- ok
./build/pcd032.ehumbnail4.jpg
./pcd015.jpg
./pcd031.jpg
./pcd031l.jpg <--
./pcd032.jpg

address@hidden ~/Download] :) 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.

--
pv





reply via email to

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