🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80814

Re: ISC Newsgroups - Unmatched )

#80814
From: Russ Allbery
Date: Thu, 30 Apr 2009 06:00
39 lines
3052 bytes
"John F. Morse" <xanadu.bbs@example.invalid> writes:

> What my question is (or was) is based on what I see as an error
> message "egrep: Unmatched ) or \)" which appears to me as pointing to
> the right (closing) parentheses without a left (opening)
> parentheses. "Unmatched" is the error.
>
> I check the newsgroups file (/var/lib/news/newsgroups) which I
> downloaded from ftp://ftp.isc.org/usenet/CONFIG/newsgroups.bz2 and
> installed, and it does, indeed, have occurrences of "unmatched"
> parentheses.

Yeah, I know, this looks plausible, but we don't think this is the cause
of the problem.  Instead, we think the problem is that your egrep can't
handle unlimited-length patterns.

The way docheckgroups works is that it first scans the list of
newsgroups to determine what top-level hierarchies are defined in it.
It then turns that list of top-level hierarchies into a regex, and uses
it to extract the relevant groups from your local active file so that it
can compare which groups need to be changed.

If you run docheckgroups on the entire newsgroups file from ftp.isc.org,
you end up with a *lot* of top-level hierarchies, and therefore a very
long regular expression.  It looks like your egrep only has a limited
length of pattern that it supports and it runs out of room in its
pattern buffer before it sees the end of the regular expression and
hence the closing parenthesis.  That's where the error message is coming
from.

The smileys in the newsgroup descriptions are probably just a red
herring.  docheckgroups doesn't care about the contents of the
description section.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <8763gmsmsu.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.freenet.de!newshub.sdsu.edu!newsfeed.stanford.edu!news.stanford.edu!not-for-mail
References: <gt3blo$khr$1@optima7.xanadu-bbs.net> <gt3ir3$aqe$1@news.trigofacile.com> <gt4mr1$qmh$1@optima7.xanadu-bbs.net> <gt4s5q$ggn$1@news.trigofacile.com> <gt5afd$vis$1@optima7.xanadu-bbs.net> <gt67c8$vqa$1@news.trigofacile.com> <gtba4u$hoh$1@optima7.xanadu-bbs.net>

Show Full Headers
Complete Article Headers
Message-ID: <8763gmsmsu.fsf@windlord.stanford.edu>
Subject: Re: ISC Newsgroups - Unmatched )
Date: Wed, 29 Apr 2009 23:00:49 -0700
From: Russ Allbery <rra@stanford.edu>
References: <gt3blo$khr$1@optima7.xanadu-bbs.net> <gt3ir3$aqe$1@news.trigofacile.com> <gt4mr1$qmh$1@optima7.xanadu-bbs.net> <gt4s5q$ggn$1@news.trigofacile.com> <gt5afd$vis$1@optima7.xanadu-bbs.net> <gt67c8$vqa$1@news.trigofacile.com> <gtba4u$hoh$1@optima7.xanadu-bbs.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.freenet.de!newshub.sdsu.edu!newsfeed.stanford.edu!news.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 39
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.stanford.edu 1241071249 19246 171.67.225.134 (30 Apr 2009
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)
Cancel-Lock: sha1:M5XL0yeSuineDyxywmura2EU77s=