diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-12-24 02:17:47 -0800 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-12-24 15:05:28 +0100 |
commit | d0be2a62a38726211cd94a06fd7e9aa23a88d07d (patch) | |
tree | c47290d1473ef6221e011d2386d775ed4cfc19cc /NEWS | |
parent | adfe8bb24cbdb0c0feaf69e573ba6c023921cd33 (diff) | |
download | grep-d0be2a62a38726211cd94a06fd7e9aa23a88d07d.tar.gz |
don't ignore errors when reading a directory
grep no longer silently suppresses errors when reading a directory
as if it were a text file. For example, "grep x ." now reports a
read error on most systems; formerly, it ignored the error.
Problem reported as an aside by Bob Proulx (Bug#10355).
* NEWS: Document this.
* src/main.c (grep, grepfile): Implement this. Simplify the code
considerably.
* src/system.h (is_EISDIR): Remove; no longer needed.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -4,6 +4,11 @@ GNU grep NEWS -*- outline -*- ** Bug fixes + grep no longer silently suppresses errors when reading a directory + as if it were a text file. For example, "grep x ." now reports a + read error on most systems; formerly, it ignored the error. + [bug introduced in grep-2.5] + 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 |