On Wed, Mar 11, 2015 at 7:32 AM, Andreas Schwab <sch...@suse.de> 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.