Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site pegasus.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!ihnp4!pegasus!mzal
From: mzal@pegasus.UUCP (Mike Zaleski)
Newsgroups: net.unix,net.unix-wizards
Subject: Re: Sort problems
Message-ID: <2041@pegasus.UUCP>
Date: Sun, 20-Jan-85 17:02:52 EST
Article-I.D.: pegasus.2041
Posted: Sun Jan 20 17:02:52 1985
Date-Received: Mon, 21-Jan-85 03:33:07 EST
Organization: AT&T Information Systems, Lincroft NJ
Lines: 23
Xref: watmath net.unix:3393 net.unix-wizards:11639


   From: naiman@pegasus.UUCP (Ephrayim J. Naiman)
   Okay you sort experts why do these two sorts not work ?

   sort << !
    Abe
   Aba
   !

This output is correct.  Space is less than 'A' in the ASCII
sequence, which is how sort sorts by default.  The -b option
should cause leading blanks to be ignored.  When I tried it with
this input, it did not work.

   sort << !
   Abe
   $Aba
   !

Try escaping the $ with a backslash when entering this to the shell.
By the way, the ASCII value of '$' is also less than that of 'A'.

-- Mike^Z   [allegra!, ihnp4!] pegasus!mzal   Zaleski@Rutgers