summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-05-15 09:26:02 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2012-05-15 09:27:53 -0700
commit582cdfacf297181c2c5ffec83fd8a3c0f6562fc6 (patch)
tree8f47211239f95c6e25f191e7bc48a950aff320e3 /NEWS
parent6c4a43ab84bc20d39128c390d14fba36f668ad98 (diff)
downloadgrep-582cdfacf297181c2c5ffec83fd8a3c0f6562fc6.tar.gz
grep: sparse files are now considered binary
* NEWS: Document this. * doc/grep.texi (File and Directory Selection): Likewise. * bootstrap.conf (gnulib_modules): Add stat-size. * src/main.c: Include stat-size.h. (usable_st_size): New function, mostly stolen from coreutils. (fillbuf): Use it. (file_is_binary): New function, which looks for holes too. (grep): Use it. * tests/Makefile.am (TESTS): Add big-hole. * tests/big-hole: New file.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS6
1 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 1497b926..f515e845 100644
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,11 @@ GNU grep NEWS -*- outline -*-
PATTERN *" again reads all *.c and *.h files except for system.h.
[bug introduced in grep-2.6]
+** New features
+
+ 'grep' without -z now treats a sparse file as binary, if it can
+ easily determine that the file is sparse.
+
** Dropped features
Bootstrapping with Makefile.boot has been broken since grep 2.6,
@@ -45,7 +50,6 @@ GNU grep NEWS -*- outline -*-
use -R if you prefer the old behavior of following all symlinks and
defaulting to reading all devices.
-
* Noteworthy changes in release 2.11 (2012-03-02) [stable]
** Bug fixes