Date: Thu, 04 Feb 2021 21:39:07 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 253209] grep -v -f some-empty-file -- does the wrong thing Message-ID: <bug-253209-227-HDjZeDTn6f@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-253209-227@https.bugs.freebsd.org/bugzilla/> References: <bug-253209-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253209 --- Comment #1 from Kyle Evans <kevans@freebsd.org> --- Created attachment 222170 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D222170&action= =3Dedit git(1) diff against base Looks like this dates back to the 2011 update, though I certainly didn't he= lp 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. --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-253209-227-HDjZeDTn6f>