🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #31047

Re: [Ann] Updated controlchan thingy

#31047
From: Paul D. Smith
Date: Mon, 31 Aug 1998 00:00
20 lines
1640 bytes
Small nit: in newgroups.pl you need to escape the group name in the RE:

        @oldgroup = grep(/^$groupname\s/, <ACTIVE>);

with \Q\E since it could contain regex chars (like comp.lang.c++ ...)

        @oldgroup = grep(/^\Q$groupname\E\s/, <ACTIVE>);

There may well be other places in the scripts that need this;
essentially it's best to do it anywhere you test a variable in an RE
that isn't supposed to contain RE chars.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <psmith@baynetworks.com>         Network Management Development
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
     These are my opinions--Bay Networks takes no responsibility for them.

Technical Details
Message-ID: <p5d89g29c6.fsf@baynetworks.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <EyK9E7.J5M@fluffy.meow.org>

Show Full Headers
Complete Article Headers
Message-ID: <p5d89g29c6.fsf@baynetworks.com>
Subject: Re: [Ann] Updated controlchan thingy
Date: Mon, 31 Aug 1998 00:00:00 +0000
From: psmith@baynetworks.com (Paul D. Smith)
References: <EyK9E7.J5M@fluffy.meow.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 386543063
X-Complaints-To: usenet@spinner.corpeast.baynetworks.com
X-Trace: spinner.corpeast.baynetworks.com 904594745 997 192.32.138.39 (31 Aug 1998 20:19:05 GMT)
Organization: Bay Networks, Inc. / Billerica, MA
Reply-To: psmith@baynetworks.com
NNTP-Posting-Date: 31 Aug 1998 20:19:05 GMT
Newsgroups: news.software.nntp