diff options
author | Jim Meyering <meyering@redhat.com> | 2011-12-11 19:26:38 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-12-12 14:09:51 +0100 |
commit | ed071726be5758b1422d7972450a1867655268b4 (patch) | |
tree | b8445db49b05cc80b20b1e200c0d5dc5de59bdfe /NEWS | |
parent | 979592944f06bddb108458073239d2ff52d2c475 (diff) | |
download | grep-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-- | NEWS | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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] |