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

From: Jim Meyering <[email-masked]>
Date: Wed, 11 Mar 2015 09:08:29 -0700

On Wed, Mar 11, 2015 at 7:32 AM, Andreas Schwab <[email-masked]> 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.