🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
1 messages
1 total messages Started by Gerben Vos Thu, 23 May 1996 00:00
Re: What is the right way to invoke a Unix command in perl script?
#7630
Author: Gerben Vos
Date: Thu, 23 May 1996 00:00
28 lines
1953 bytes
Tom Christiansen writes in comp.lang.perl:

>How disturbing.  I got an email cc that wasn't marked as also
>being posted publicly, so I took the time to respond privately,
>not realizing it would come up again in the newsgroup.  Your
>newsreader, if not broken, is certainly suboptimal in its handling
>of this.  Of course, it's not your fault, beasue you don't know better.

I don't know what the original posted uses, but it may be nn.
Your complaint inspired me to patch my "nnaux" file to do exactly this.
Change line 289 (or nearby, where it handles cc) from

    sed -e "s/^To:/X-To:/" -e "/^Orig-To:/d" $WORK >> $FINAL

to

    sed -e "s/^To:/X-To:/" -e "/^Orig-To:/d" $WORK |perl -pe '?^$? && print "\n[courtesy copy of posted news article]\n"' >> $FINAL

I don't know enough sed to make this work without Perl, so for the
news.software.nn readers: you'll need Perl for this.

[Shpx gur Pbzzhavpngvbaf Qrprapl Npg] . . . . . . . . G e r b e n   V o s   <><
mailto:gerben@cs.vu.nl                           http://www.cs.vu.nl/%7Egerben/
Be conservative in what you send and liberal in what you accept.
                                        -- RFC 791, paraphrased

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads