GNU bug report logs - #19348
grep-2.21 cannot match patterns with NULLs in binary files

Previous Next

Package: grep;

Reported by: Jaroslav Skarvada <jskarvad <at> redhat.com>

Date: Thu, 11 Dec 2014 15:32:01 UTC

Severity: wishlist

Full log


View this message in rfc822 format

From: Jaroslav Skarvada <jskarvad <at> redhat.com>
To: 19348 <at> debbugs.gnu.org
Subject: bug#19348: grep-2.21 cannot match patterns with NULLs in binary files
Date: Thu, 11 Dec 2014 10:31:24 -0500 (EST)
Hi,

commit 8cc20c82a747460991305b0d8d72faf6830298f4,
"grep: non-text bytes in binary data may be treated as line ends"

added optimization that NULLs are treated as line ends. This is
change of behaviour that may break other tools. Currently I know
about [1], [2]. This new behaviour is not documented in manual page,
it is only briefly mentioned in the NEWS file.

I also think that the old behaviour is useful, so command line switch
for this would be probably handy

thanks & regards

Jaroslav

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1172405
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1172804




This bug report was last modified 10 years and 188 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.