summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-12-24 02:16:47 -0800
committerJim Meyering <meyering@redhat.com>2011-12-24 12:55:50 +0100
commitadfe8bb24cbdb0c0feaf69e573ba6c023921cd33 (patch)
tree75ead772cb245444ee51d3217a5a2019ad52446a /NEWS
parent5c24afd142b57d9378a1e0a735f8056d7592a800 (diff)
downloadgrep-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--NEWS7
1 files changed, 7 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 5e187f8a..32cb32ec 100644
--- a/NEWS
+++ b/NEWS
@@ -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