🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #19090

Trn 3.6 Speller script: Clobbering article parts on re-assembly

#19090
From: Shawn W. Barnhart
Date: Mon, 12 Feb 1996 00:00
38 lines
2014 bytes
I've been having a devil of a time trying to figure out why the Speller
script is clobbering my articles.  After an hour or so of checking, I've
narrowed down the 'when' but not the 'why'.  Perhaps some of you more versed
in shell scripts can tell me what's happening.

The Speller script works fine when spell checking an original article (i.e.,
one with no quoted text, not necessarily a unique contribution to USENET..).
When checking an article with attribution, the spell-check process moves
along nicely until it's time to reassemble the article from the pieces it
was split into.

Somehow, at line 152:

    ($cat $quoted; $echo w $body; $echo q) | $ed - $mine

...causes all the /tmp/spxxxx* files to disappear, leaving nothing left for
line 157:

    $cat $hdrs $body $sig >$1

This, naturally, results in file not found error messages and ~.article
being empty.

I looked at the output of line 152 as it would be piped to $ed - $mine, and
it seems consistent with valid commands in my version of ed (GNU ed version
0.2).

Is there something wrong with my /bin/ed?  Is there some reason why the temp
files would mysteriously disappear without being explicitly rm'd? 

Any enlightenment appreciated.
-- 
Shawn Barnhart                             swb@mercury.campbell-mithun.com
Network Administrator                     Campbell Mithun Esty Advertising
                 How's my posting?  Call 1-800-DEV-NULL.

Technical Details
Message-ID: <4fmj52$j07@news.mr.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <4fmj52$j07@news.mr.net>
Subject: Trn 3.6 Speller script: Clobbering article parts on re-assembly
Date: Mon, 12 Feb 1996 00:00:00 +0000
From: swb@mercury.campbell-mithun.com (Shawn W. Barnhart)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 139016251
Organization: Campbell Mithun Esty Advertising
Newsgroups: news.software.readers