root@cocktrice.uucp (0000-Admin(0000)) (09/02/89)
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@cocktricetrevor@trevan.uucp (0000-trevor(0000)) (09/05/89)
In article <1989Sep2.021840.5452@cocktrice.uucp>, root@cocktrice.uucp (0000-Admin(0000)) writes: > 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. > .... > #egreppat="^(` sed -e 's/[.+*()|[]/\\\\&/g' -e 's/,/|/g' <$nglist `) " I just got rid of the . ie egreppat="^(` sed -e 's/[+*()|[]/\\\\&/g' -e 's/,/|/g' <$nglist `) " It seems to work for postgroup but I am *NOT* an egrep expert and would like to know what is going on if any one can enlighten me. regards trevor