summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-12-24 02:17:47 -0800
committerJim Meyering <meyering@redhat.com>2011-12-24 15:05:28 +0100
commitd0be2a62a38726211cd94a06fd7e9aa23a88d07d (patch)
treec47290d1473ef6221e011d2386d775ed4cfc19cc /NEWS
parentadfe8bb24cbdb0c0feaf69e573ba6c023921cd33 (diff)
downloadgrep-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--NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 32cb32ec..38241596 100644
--- a/NEWS
+++ b/NEWS
@@ -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