diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2012-01-01 11:12:10 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2012-01-01 11:14:56 -0800 |
commit | 75bc6fb14dea81ade7d761448610c2280d17d1d6 (patch) | |
tree | 9734104b97418897e6badc1e616500991960915a /NEWS | |
parent | 5b2201913f28f43da01cfebfce90b798db64f117 (diff) | |
download | grep-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-- | NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |