scott@helium.UUCP (Scott Hazen Mueller) (10/19/87)
There is a bug in the implementation of 'sed' on Microport System V/386 that causes checkgroups to incorrectly report moderated groups as being unmoderated. This bug also cropped up in rn's newsgroups functions (the 'l' command at the top level prompt). This has been reported to uPort and has been passed on to their bug people. I'm including a copy of my original bug report for anyone who might be interested in hacking a kludge up. My "fix" is to ignore the (un)moderated messages. I would be interested in hearing if any other 386 Unix implementations display this problem. The bug report follows. \scott BUG>Problem: BUG> BUG>According to the documentation, sed(1), when performing a subsititution, BUG>may have the flag "p", as in s/regular expression/replacement/flags, eg. BUG>s/foo/bar/p --- substitute bar for foo and print if a replacement was BUG>made. BUG> BUG>This is not working correctly. Example: BUG> BUG>input file: BUG>abc BUG>def BUG>abe BUG>aaa BUG> BUG>command script file: BUG>/a/s/a/x/p BUG>d BUG> BUG>save as infile and sfile; execute the command "sed <infile -f sfile". BUG>It should print: BUG>xbc BUG>xbe BUG>xaa BUG> BUG>It does not. It prints nothing. Remove the 'd' from sfile and it BUG>properly echos the input put does not print the pattern space. -- Scott Hazen Mueller City of Turlock 901 S. Walnut Rd. Turlock CA 95380 (209) 668-5590 lll-crg!csustan!helium!scott uunet!zorch!helium!scott