bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-v -f utility


From: Jerrad Pierce
Subject: -v -f utility
Date: Mon, 06 Feb 2006 12:39:31 -0500

        grep -v -f patternsFile searchFile

seems to return the same result set as

        grep -f patternsFile searchFile

That's not very useful. One would expect this to return lines from searchFile
that do not match *any* of the patterns in patternsFile. This is grep 2.5.1. 

It's possible POSIX defines this behavior, but that doesn't means its correct.
Nor is GNU known for blindly following POSIX, see also POSIX_ME_HARDER.
-- 
H4sICNoBwDoAA3NpZwA9jbsNwDAIRHumuC4NklvXTOD0KSJEnwU8fHz4Q8M9i3sGzkS7BBrm
OkCTwsycb4S3DloZuMIYeXpLFqw5LaMhXC2ymhreVXNWMw9YGuAYdfmAbwomoPSyFJuFn2x8
Opr8bBBidccAAAA=
--
MOTD on Boomtime, the 37th of Chaos, in the YOLD 3172:
Alternative smock. --JP




reply via email to

[Prev in Thread] Current Thread [Next in Thread]