Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site dciem.UUCP Path: utzoo!dciem!tim From: tim@dciem.UUCP (Tim Pointing) Newsgroups: net.unix-wizards,net.bugs.v7 Subject: bug/inconsistancy in *grep Message-ID: <692@dciem.UUCP> Date: Thu, 9-Feb-84 11:34:02 EST Article-I.D.: dciem.692 Posted: Thu Feb 9 11:34:02 1984 Date-Received: Thu, 9-Feb-84 20:02:22 EST Organization: D.C.I.E.M., Toronto, Canada Lines: 17 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