Thread View: gnu.utils.bug
1 messages
1 total messages
Started by Francois Pinard
Sat, 26 Sep 1992 12:47
GNU `sort -s' not working as documented
Author: Francois Pinard
Date: Sat, 26 Sep 1992 12:47
Date: Sat, 26 Sep 1992 12:47
24 lines
1429 bytes
1429 bytes
This pertains to GNU sort from GNU textutils 1.3, compiled with GNU C
1.40 under COFF encapsulation on this 386/ix 2.0.2 system, waiting for
Hurd to be available :-). The documentation says:
Finally, as a last resort when all keys compare equal (or if no
ordering options were specified at all), sort compares the lines
byte by byte in machine collating sequence. The -s option
disables this last resort comparison, producing a stable sort.
So, a mere `sort -s FILE' should behave the same as `cat FILE'. But:
~/8c) { echo b; echo a } | sort -s
a
b
~/8c) type sort
sort is hashed (/usr/local/gnubin/sort)
~/8c) grep ersion /usr/local/gnubin/sort
GNU textutils version 1.3
~/8c)
--
Franc,ois Pinard ``Vivement GNU!'' pinard@iro.umontreal.ca
(514) 588-4656 ...!uunet!iros1!pinard
Consider joining the League for Programming Freedom. Email for details!
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads