summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-12-11 19:26:38 +0100
committerJim Meyering <meyering@redhat.com>2011-12-12 14:09:51 +0100
commited071726be5758b1422d7972450a1867655268b4 (patch)
treeb8445db49b05cc80b20b1e200c0d5dc5de59bdfe /NEWS
parent979592944f06bddb108458073239d2ff52d2c475 (diff)
downloadgrep-ed071726be5758b1422d7972450a1867655268b4.tar.gz
disable the new input==output guard for additional options
* src/main.c (grepfile): Do not reject input == output also when using a few other options. * tests/in-eq-out-infloop: Test these new cases. * NEWS (Bug fixes): Mention it
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS12
1 files changed, 12 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 6bdeb221..5e187f8a 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,18 @@ GNU grep NEWS -*- outline -*-
* Noteworthy changes in release ?.? (????-??-??) [?]
+** Bug fixes
+
+ 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
+ of an output-affecting race condition. Thus, the use of the following
+ options also disables the input-equals-output failure:
+ --max-count=N (-m) (for N >= 2)
+ --files-with-matches (-l)
+ --files-without-match (-L)
+ [bug introduced in grep-2.10]
+
* Noteworthy changes in release 2.10 (2011-11-16) [stable]