From: frank@niagara.nyo.dec.com (Frank Wortner)
Subject: Re: sort bug?
Date: Fri, 22 Jul 1994 14:43:09 GMT [thread overview]
Message-ID: <1994Jul22.144309.27946@datum.nyo.dec.com> (raw)
In-Reply-To: 1994Jul20.234101.5587@lugb.latrobe.edu.au
In article <1994Jul20.234101.5587@lugb.latrobe.edu.au>, ccvj@misty.latrobe.edu.au (Vicki Jordan) writes:
|> One of the daily news reports performs some operations on the log file
|> such as:
|>
|> egrep unapproved $sus | sed 's/.*`\(.*\)'"'"'.*/\1/' | sort |
|> uniq -c | sort -nr | sed 5q >$tmp
|>
|> When the search is empty, sort generates a newline :
|> sort: Warning: A newline character was added to the end of the input.
|> sort: Warning: A newline character was added to the end of the input.
Well, if it's a bug, it's shared by every system I've tried. I checked
the local Sun, an ULTRIX system, and a DEC OSF/1 system and they all
produced a similar message when I did this:
echo -n " " | sort
GNU sort has the same effect --- adding a newline --- but it does not
produce a warning telling you what it has done.
Frank
next prev parent reply other threads:[~1994-07-22 14:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-07-20 23:41 sort bug? Vicki Jordan
1994-07-21 15:52 ` Peter da Silva
1994-07-22 14:43 ` Frank Wortner [this message]
1994-07-22 15:32 ` Steve Morin
1994-07-23 0:37 ` Jeffrey Mogul
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox