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

2015-03-11 Thread Jim Meyering
tags 20080 notabug thanks On Wed, Mar 11, 2015 at 9:58 AM, Andreas Schwab wrote: > Jim Meyering writes: > >> You can use the --text (-a) option to make it match. > > The --text option is supposed to only change the output, no the match. True, but that is a separate issue, so I'm closing this bu

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

2015-03-11 Thread Andreas Schwab
Jim Meyering writes: > You can use the --text (-a) option to make it match. The --text option is supposed to only change the output, no the match. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for someth

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

2015-03-11 Thread Jim Meyering
On Wed, Mar 11, 2015 at 7:32 AM, Andreas Schwab 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

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

2015-03-11 Thread Andreas Schwab
$ printf "a\0b\n" | src/grep a.b; echo $? 1 Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."