bug/inconsistancy in *grep

Tim Pointing tim at dciem.UUCP
Fri Feb 10 02:34:02 AEST 1984


There is an inconsistancy in the way "-v" is handled in the V7 grep's
(fgrep/egrep/grep). The "-v" flag should, in my humble opinion, invert
the exit status of grep. I.e. if every line does contain the pattern
(grep -v doesn't pass any lines to stdout), then the exit status of grep
should indicate failure. If "grep" fails then "grep -v" shouldn't fail!.

I hesitate in fixing this at our site since this could cause problems for
scripts that are sent to/from us. Does anybody know if this "misfeature"
has been fixed in 4.?/SIII/SV  ?



tomorrow I'll get around to doing what should have been done yesterday...
-- 
	Tim Pointing, DCIEM
	{allegra,ubc-vision,linus,ihnp4,uw-beaver,floyd}!utcsrgv!dciem!tim
or	{allegra,ihnp4,linus,decvax}!utzoo!dciem!tim



More information about the Comp.unix.wizards mailing list