[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#20080: '.' fails to match null byte

From: Jim Meyering
Subject: bug#20080: '.' fails to match null byte
Date: Wed, 11 Mar 2015 09:08:29 -0700

On Wed, Mar 11, 2015 at 7:32 AM, Andreas Schwab <address@hidden> wrote:
> $ printf "a\0b\n" | src/grep a.b; echo $?
> 1

Thanks for the report.
However, that is now the expected behavior, and the change was
announced in grep-2.21.
You can use the --text (-a) option to make it match.
Here is the entry from the NEWS file:

** Changes in behavior

  When searching binary data, grep now may treat non-text bytes as
  line terminators.  This can boost performance significantly.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]