Michael Grünewald
2014-11-12 07:41:12 UTC
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.
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.