diff options
author | Jim Meyering <meyering@redhat.com> | 2012-04-17 13:37:10 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-04-17 17:26:55 +0200 |
commit | 55cf7b6a1905320c36702a476b09ebb29a2934d3 (patch) | |
tree | d7465af2d4e05fb91664123180b1ca0db00e6934 /doc | |
parent | a2e0193455e620f6bad1005500da418d9eba2ae6 (diff) | |
download | grep-55cf7b6a1905320c36702a476b09ebb29a2934d3.tar.gz |
grep: fix --devices=ACTION (-D) so stdin is once again exempt
An oversight in the 2.11 changes made it so "echo x|grep x" would
fail for those who set GREP_OPTIONS=--devices=skip.
* src/main.c (grepdesc): Ignore skip-related options when reading
from standard input.
* tests/skip-device: New file. Test for the above.
* tests/Makefile.am (TESTS): Add it.
* doc/grep.texi (File and Directory Selection): Clarify this point,
documenting the stdin exemption.
* NEWS (Bug fixes): Mention it, and add a few "[fixed in ...] notes.
Reported by Tino Keitel in http://bugs.debian.org/669084,
and forwarded to bug-grep by AnĂbal Monsalve Salazar.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/grep.texi | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/grep.texi b/doc/grep.texi index 1840e219..000a8446 100644 --- a/doc/grep.texi +++ b/doc/grep.texi @@ -614,6 +614,7 @@ By default, devices are read if they are on the command line or if the @option{-R} (@option{--dereference-recursive}) option is used, and are skipped if they are encountered recursively and the @option{-r} (@option{--recursive}) option is used. +This option has no effect on a file that is read via standard input. @item -d @var{action} @itemx --directories=@var{action} |