trnkill problems!

Mark Shaw (mshaw@netcom.com)
Mon, 08 Jul 1996 19:50:20 -0500

Howdy -

I've been using the trnkill bourne shell script for some time now, and
it's just stopped working for me. (I've included it at the end of this
message for reference.) Here's what happens -- I turned debug on for
this run:

% trnkill -d

==== 5 in alt.fan.rush-limbaugh -- read? [ynq] .q.....
Signal 11--bye bye
/u9/mshaw/bin/trnkill: 14029 Abort
%

The numeric value returned to trnkill (14029 in this instance) changes
every time I try this.

It would appear that the problem lies with trn itself rather than the
script -- here's what happens when I run trn:

% trn
Unread news in alt.fan.rush-limbaugh 69 articles
Unread news in alt.smokers.cigars 18 articles
Unread news in alt.support.mult-sclerosis 19 articles
Unread news in netcom.shell.general 3 articles
Unread news in rec.crafts.brewing 11 articles
etc.

====== 69 unread articles in alt.fan.rush-limbaugh -- read now? [+ynq]
Reading thread file......
Caught a SIGSEGV--.newsrc restored
Abort
%

I also tried tin -- it just locks up without issuing any error messages.
Fortunately, uqwk seems to be unaffected, so I can still read offline --
I just can't filter twits before downloading.

The only thing that seems to work is to unsubscribe from alt.fan.rush-
limbaugh directly -- by editing my .newsrc. If I do this, both trnkill
and trn seem to run fine. Simply deleting ~/News/alt/fan/rush-limbaugh/
KILL didn't help at all, so I doubt it's a syntax error in the killfile.

Anybody have any ideas what's going on, or what other tests I might make?
Thanks in advance for any info....

Here's trnkill:

#!/bin/sh
# trnkill - shell script to apply trn KILL files in the background
# 14 Mar 89 created for rn by Jim Olsen <olsen@XN.LL.MIT.EDU>
# 10 Sep 93 modified for trn 3 (or 2) by Wayne Davison <davison@borland.com>
# 16 Nov 94 New version received from Chin Huang <cthuang@io.sys>
#
# Options: -d debug mode -- you see all gory action as it happens.
#
# Visit all newsgroups (if trn asks about anything else, just say no)
export TRNINIT TRNMACRO RNMACRO
TRNINIT='-q -s -T -t -x +X'
#TRNINIT='-q -s -T -x +X'
TRNMACRO=/tmp/trnkill$$
# support for trn 2.x
RNMACRO=$TRNMACRO
trap 'rm -f $TRNMACRO; exit' 1 2 3 15
cat >$TRNMACRO <<'EOF'
z %(%m=[nf]?.q^J:n)^(z^)
^m ^(z^)
^j ^(z^)
EOF
if test X$1 = X-d; then
echo "z" | trn
else
echo "z" | trn >/dev/null 2>&1
fi
rm -f $TRNMACRO
exit 0

-- 
Mark Shaw <mshaw@netcom.com>                
PGP public key available at ftp.netcom.com:/pub/ms/mshaw