sort(1) -uf output inconsistent with manual page

R.MAUS rick at ariel.UUCP
Fri Jan 11 02:13:05 AEST 1985


The following report was recently submitted to the UNIX* Support
Group.  I am reposting it for the benefit of the network community.

PROBLEM:
  The "-f" option of "sort(1)" does not  perform  as  advertised,
when  used  in  conjunction  with  the  "-u"  option.   Given the
following  three  examples,  the  output  hinges  on  the   first
occurance  of  the text.  The word is not folded to lower-case as
described other than for comparision purposes.

REPEAT-BY:
        $ sort -fu <<!  $ sort -fu <<!  $ sort -fu <<!
        JUNK            Junk            junk
        Junk            junk            JUNK
        junk            JUNK            Junk
        !               !               !

PRODUCES:
        JUNK            Junk            junk

CONCLUSION:
  The output should always be in lower case.  Changing the manual
page  to  indicate  the  problem  will  only serve to confuse the
situation.

*  UNIX is a trademark AT&T Bell Laboratories.

				Richard L. Maus, Jr. (Rick)
				AT&T-ISL HO 1K313 201-834-4532
				...!ho???!ariel!rick



More information about the Net.bugs.usg mailing list