Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!henry
From: henry@utzoo.UUCP (Henry Spencer)
Newsgroups: net.news.b
Subject: rnews.sh bug 
Message-ID: <3063@utzoo.UUCP>
Date: Sat, 2-Jul-83 02:08:27 EDT
Article-I.D.:    utzoo.3063
Posted: Sat Jul  2 02:08:27 1983
Date-Received: Sat, 2-Jul-83 02:08:27 EDT
Organization: U of Toronto Zoology
Lines: 19

Among the items in the "misc" directory in 2.10 was a shell file,
otherwise undocumented, named "rnews.sh".  This was a slightly
touched-up version of something I submitted to the net a while ago:
it invoked the real news system, but if something went wrong it sent
the article and the error messages somewhere, so that something could
be done about the problem.  It contains a major bug, which I just
discovered.  Line 5 should read:

    if test -s /tmp/rnm$$ && grep -s -v '^Duplicate article ' /tmp/rnm$$

NOT

    if test -s /tmp/rnm$$ && grep -s -v '^Duplicate article '

The effect of the bug is that no trouble is ever reported.
-- 
				Henry Spencer
				U of Toronto
				{allegra,ihnp4,linus,decvax}!utzoo!henry