[Bug 253209] grep -v -f some-empty-file -- does the wrong thing
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Feb 4 21:39:07 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253209
--- Comment #1 from Kyle Evans <kevans at freebsd.org> ---
Created attachment 222170
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=222170&action=edit
git(1) diff against base
Looks like this dates back to the 2011 update, though I certainly didn't help
matters any... basically, we short-circuit back in main() far before we get to
any matching stuff, but we cannot short-circuit because we may still need to
output.
The attached patch fixes the semantics of -w and -x in the presence of both
null patterns and empty pattern files, to make sure that we don't miss
anything. I will commit it ~tonight, most likely.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the freebsd-bugs
mailing list