πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80078

Re: docheckgroups -u throws error regrding egrep

#80078
From: Michael Grimm
Date: Sun, 01 Feb 2009 21:03
62 lines
2730 bytes
Julien Γ‰LIE <iulius@nom-de-mon-site.com.invalid> wrote:

>> But, if I understand http://www.eyrie.org/~eagle/software/inn/docs/docheckgroups.html
>> understand correctly,'-u' shouldn't output what to do, but applies it
>> instead. Correct or misunderstanding of mine?
>
> What makes you think of that in the man page?

[explanations]

Ok, sorry. What I meant is: with '-u' changes are applied to newsgroups,
without that flag, changes are advertised, only. Ok or still a blackout
of mine? 

>> news|news> egrep --help
>> Usage: egrep [OPTION]... PATTERN [FILE] ...
>
> Hmm...  The problem does not seem to be related with egrep, but with
> the way "-u" is parsed.  It is not removed by docheckgroups.  Then,
> we have "egrep -u" which does not exist.
>
> docheckgroups currently does:
>
> ##  Parse arguments.
> if [ $# -gt 0 ]; then
>     case $1 in
>     -u) shift;
>         UPDATEDESC=true;;
>     esac
> fi
>
> Do you know how it should be written for your platform?
>
> ##  Parse arguments.
> if [ $# -gt 0 ]; then
>     case $1 in
>     -u)
>         shift
>         UPDATEDESC=true
>         ;;
>     esac
> fi
>
>
> ??
>
>
> [ "$#" -gt "0" ]
>
> ??
>
> Could you please make some tests?
> It is near the beginning of <pathbin>/docheckgroups.

I'm awefully sorry, but I do not understand *what* I should test. I
cannot find a single 'shift' in my docheckgroups nor an 'UPDATEDESC'?
I'm running INN 2.4.5, if that matters ...

Regards,
Michael
-- 
to let
Technical Details
Message-ID: <gm52mf$n9n$1@de-l.enfer-du-nord.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!news.unit0.net!de-l.enfer-du-nord.net!not-for-mail
References: <gm4h6m$9r3$1@de-l.enfer-du-nord.net> <gm4njb$uj2$1@news.trigofacile.com> <gm4u70$le6$1@de-l.enfer-du-nord.net> <gm50bp$7tc$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <gm52mf$n9n$1@de-l.enfer-du-nord.net>
Subject: Re: docheckgroups -u throws error regrding egrep
Date: Sun, 01 Feb 2009 21:03:12 +0000
From: Michael Grimm <trashcan@odo.in-berlin.de>
References: <gm4h6m$9r3$1@de-l.enfer-du-nord.net> <gm4njb$uj2$1@news.trigofacile.com> <gm4u70$le6$1@de-l.enfer-du-nord.net> <gm50bp$7tc$1@news.trigofacile.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.freenet.de!news.unit0.net!de-l.enfer-du-nord.net!not-for-mail
Newsgroups: news.software.nntp
Organization: ATK - Alternative Tierklinik links der Einfalt
Lines: 62
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 8bit
X-Trace: de-l.enfer-du-nord.net
 eJwNydEBACAEBcCViIfGQdl/hPq9gxhbuxpMMZit1cMoWamJougrUhvyl/D9ZIfE4vRYSlZ9/tTMTr/Nc/0EFYJ1TI7vB9c8Gic=
X-Complaints-To: abuse@de-l.enfer-du-nord.net
Cancel-Lock: sha1:0PAEYAsMmMorS3kch6QQt3QxNJA=
User-Agent: slrn/0.9.9p1/mm/ao (Darwin)
Mail-Copies-To: nobody