Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!udel!gatech!ncar!unmvax!ogccse!cvedc!nosun!qiclab!ditka!cocktrice!root From: root@cocktrice.uucp (0000-Admin(0000)) Newsgroups: news.software.b Subject: 'C' inews breaks on microport v/at Message-ID: <1989Sep2.021840.5452@cocktrice.uucp> Date: 2 Sep 89 02:18:40 GMT Organization: Mike's Playground, Santa Fe, New Mexico Lines: 37 In installing the Cnews system under Microport V/AT, I have found that the inews shell script breaks somewhere using egrep to locate the groups to post to. I found that Cnews comes with the utility gngp which seems to be a perfect replacement for what was supposed to happen with egrep. Below is the excerpt from inews which details the changes I made. ---- # Microport V/AT patch, egrep is broken so the gngp utility provided # with cnews has been used instead. This should not break any other # machines where gngp runs. # look up groups in active, to determine disposition of this message. # n, x and (unapproved) m flags are dealt with on the spot; if none are # seen, the article is posted normally. # escape egrep metacharacters. In theory one could add " ' ` \ to the list. #egreppat="^(` sed -e 's/[.+*()|[]/\\\\&/g' -e 's/,/|/g' <$nglist `) " #egrep "$egreppat" $NEWSCTL/active >/dev/null || { gngp -a `cat $nglist` $NEWSCTL/active >/dev/null || { echo "$0: `cat $nglist` matches no groups in $NEWSCTL/active" >&2 exit 1 } rm -f $grpok #egrep "$egreppat" $NEWSCTL/active | gngp -a `cat $nglist` $NEWSCTL/active | (while read ng high low flag junk # look at next group's active entry do >>$grpok case "$flag" in ---- Mike Mitchell mdm@cocktrice