grep: Listing files without lines matching a pattern

Michael Grünewald <[email protected]> Wed, 12 Nov 2014 08:41:12 +0100
Newsgroups gmane.comp.gnu.utils.bugs
Message-ID <[email protected]>
In my version of GNU grep (see below) using both *-l* and *-v* (in that
order) leads to *-v* being silently ignored.

My intent by using *-l* and *-v* was to achieve the effect of *-L*,
listing files without lines matching a pattern.  Seeing the option *-v*
being silently ignored in this context is a surprising effect, which
should be documented and maybe could lead *grep* to fail with a “Usage”
error.

Best regards,
Michael Grünewald


grep --version
grep (GNU grep) 2.5.1-FreeBSD

Copyright 1988, 1992-1999, 2000, 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.