Article View: news.software.nntp
Article #83800Re: docheckgroups et al
From: Julien ÉLIE
Date: Wed, 05 Jan 2011 22:24
Date: Wed, 05 Jan 2011 22:24
59 lines
3376 bytes
3376 bytes
Hi John,
> The issue is docheckgroups.
OK, thanks to your help (access to your news server), I see that you do
not have gawk installed and therefore that mawk is used instead.
The behaviour seems to be different between these two programs.
Currently, we have lines written this way in docheckgroups:
${AWK} '{ if (($1 ~ /'"${1:-.}"'/) && ($1 ~ /'"${PATS}"'/)) \
{ print $1 } }' \
${T}/$$msg | ${SORT} >${T}/$$newsgrps
The problem comes from the quoted variables inside the patterns. I
manage to make them work with both mawk and gawk if I use this syntax:
${AWK} '{ if (($1 ~ progargument) && ($1 ~ filepattern)) \
{ print $1 } }' "progargument=${1:-.}" "filepattern=${PATS}" \
${T}/$$msg | ${SORT} >${T}/$$newsgrps
I must admit that I do not know why docheckgroups with mawk outputs
something with a small newsgroups file, and nothing with a big one.
(Pattern matchings should not change depending on the length of the
newsgroups file…)
Are there awk connoisseurs here who could tell if this is the right fix
to do throughout docheckgroups?
(It is the only affected file in INN.)
Thanks beforehand!
>> plus my local groups which are listed in /etc/news/localgroups.
>
> Ah, so it is based on hierarchies? Then why did it want to remove my
> local groups?
Because of the same problem; mawk does not do the expected job like gawk
to extract your local newsgroups.
--
Julien ÉLIE
« N'as-tu jamais fait ces rêves, Neo, qui ont l'air plus vrais que la
réalité ? Si tu étais incapable de sortir de l'un de ces rêves,
comment ferais-tu la différence entre le monde du rêve et le monde
réel ? » (Morpheus, _Matrix_)
Technical Details
Message-ID:
<8ok9csFl0pU1@mid.individual.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.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!news2.euro.net!feeder.news-service.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<ie88v7$hg8$1@n102.xanadu-bbs.net> <ifb38e$2m6$1@puck.litech.org> <ifcmdj$h2p$1@n102.xanadu-bbs.net> <87ipydiwys.fsf@windlord.stanford.edu> <ifri8f$4jg$1@puck.litech.org> <ifs1r4$rjh$1@n102.xanadu-bbs.net> <8oejprF38fU1@mid.individual.net> <ifth0a$92v$1@n102.xanadu-bbs.net> <8of2b7FqphU1@mid.individual.net> <ifvkrk$tqg$1@n102.xanadu-bbs.net> <87r5csmuwk.fsf@windlord.stanford.edu> <ig05m5$2ij$1@n102.xanadu-bbs.net>Show Full Headers
Complete Article Headers
Message-ID: <8ok9csFl0pU1@mid.individual.net> Subject: Re: docheckgroups et al Date: Wed, 05 Jan 2011 23:24:28 +0100 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <ie88v7$hg8$1@n102.xanadu-bbs.net> <ifb38e$2m6$1@puck.litech.org> <ifcmdj$h2p$1@n102.xanadu-bbs.net> <87ipydiwys.fsf@windlord.stanford.edu> <ifri8f$4jg$1@puck.litech.org> <ifs1r4$rjh$1@n102.xanadu-bbs.net> <8oejprF38fU1@mid.individual.net> <ifth0a$92v$1@n102.xanadu-bbs.net> <8of2b7FqphU1@mid.individual.net> <ifvkrk$tqg$1@n102.xanadu-bbs.net> <87r5csmuwk.fsf@windlord.stanford.edu> <ig05m5$2ij$1@n102.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.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!news2.euro.net!feeder.news-service.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 59 Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net Lk/eIrvszzRVz1RHSqqomQ+HlHPqB6vf+7tZjL/nv7fTEv5FY= Cancel-Lock: sha1:NiP/4NCh0HIkCXbnaS9yGvXrV1A= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; fr; In-Reply-To: <ig05m5$2ij$1@n102.xanadu-bbs.net> X-Original-Bytes: 3118