summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-01-01 11:12:10 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2012-01-01 11:14:56 -0800
commit75bc6fb14dea81ade7d761448610c2280d17d1d6 (patch)
tree9734104b97418897e6badc1e616500991960915a /NEWS
parent5b2201913f28f43da01cfebfce90b798db64f117 (diff)
downloadgrep-75bc6fb14dea81ade7d761448610c2280d17d1d6.tar.gz
grep: check stdin like other files
* NEWS: Document this. * src/main.c (grepfile): Revamp tests for input files so that standard input is tested like other files. For example, report an error if standard input equals standard output. Prefer open+fstat to stat+open if possible, as open+fstat is usually a bit faster and avoids a race condition. * tests/in-eq-out-infloop: Add tests for cases like 'grep pat <file >>file'.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 636e5dc7..d4475bcb 100644
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,10 @@ GNU grep NEWS -*- outline -*-
read error on most systems; formerly, it ignored the error.
[bug introduced in grep-2.5]
+ On POSIX systems, commands like "grep PAT < FILE >> FILE"
+ now report an error instead of looping.
+ [bug present since "the beginning"]
+
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