[net.news.b] rnews.sh bug

henry@utzoo.UUCP (Henry Spencer) (07/02/83)

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