diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-12-24 02:16:47 -0800 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-12-24 12:55:50 +0100 |
commit | adfe8bb24cbdb0c0feaf69e573ba6c023921cd33 (patch) | |
tree | 75ead772cb245444ee51d3217a5a2019ad52446a /NEWS | |
parent | 5c24afd142b57d9378a1e0a735f8056d7592a800 (diff) | |
download | grep-adfe8bb24cbdb0c0feaf69e573ba6c023921cd33.tar.gz |
--include etc. now work on command-line args more consistently
--include and --exclude apply only to non-directories and
--exclude-dir applies only to directories. "-" (standard input)
is never excluded, since it is not a file name.
This bug was discovered while fixing a read-directory bug (Bug#10355).
* NEWS: Document this.
* src/main.c (main): Implement this.
* tests/include-exclude: Test for it.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -4,6 +4,13 @@ GNU grep NEWS -*- outline -*- ** Bug fixes + The --include, --exclude, and --exclude-dir options now handle + command-line arguments more consistently. --include and --exclude + apply only to non-directories and --exclude-dir applies only to + directories. "-" (standard input) is never excluded, since it is + not a file name. + [bug introduced in grep-2.5] + grep no longer rejects "grep -qr . > out", i.e., when run with -q and an input file is the same as the output file, since with -q grep generates no output, so there is no risk of infinite loop or |