Article View: gnu.utils.bug
Article #947GNU `sort -s' not working as documented
From: 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!
Technical Details
Message-ID:
<9209261247.AA06583@icule.UUCP>Path:
arc1-ca.pugleaf.net!sparky!uunet!wupost!uwm.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!icule.UUCP!pinardShow Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!uwm.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!icule.UUCP!pinard From: pinard@icule.UUCP (Francois Pinard) Subject: GNU `sort -s' not working as documented Message-ID: <9209261247.AA06583@icule.UUCP> Sender: gnulists@ai.mit.edu Reply-To: pinard@iro.umontreal.ca Organization: GNUs Not Usenet Distribution: gnu Date: Sat, 26 Sep 1992 12:47:41 GMT Approved: bug-gnu-utils@prep.ai.mit.edu Lines: 25