GNU bug report logs - #20080
'.' fails to match null byte

Previous Next

Package: grep;

Reported by: Andreas Schwab <schwab <at> suse.de>

Date: Wed, 11 Mar 2015 14:33:01 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 20080 in the body.
You can then email your comments to 20080 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-grep <at> gnu.org:
bug#20080; Package grep. (Wed, 11 Mar 2015 14:33:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andreas Schwab <schwab <at> suse.de>:
New bug report received and forwarded. Copy sent to bug-grep <at> gnu.org. (Wed, 11 Mar 2015 14:33:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> suse.de>
To: bug-grep <at> gnu.org
Subject: '.' fails to match null byte
Date: Wed, 11 Mar 2015 15:32:01 +0100
$ printf "a\0b\n" | src/grep a.b; echo $?
1

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab <at> suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."




Information forwarded to bug-grep <at> gnu.org:
bug#20080; Package grep. (Wed, 11 Mar 2015 16:09:04 GMT) Full text and rfc822 format available.

Message #8 received at 20080 <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: Andreas Schwab <schwab <at> suse.de>
Cc: 20080 <at> debbugs.gnu.org
Subject: Re: 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 <schwab <at> 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.




Information forwarded to bug-grep <at> gnu.org:
bug#20080; Package grep. (Wed, 11 Mar 2015 16:59:02 GMT) Full text and rfc822 format available.

Message #11 received at 20080 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> suse.de>
To: Jim Meyering <jim <at> meyering.net>
Cc: 20080 <at> debbugs.gnu.org
Subject: Re: bug#20080: '.' fails to match null byte
Date: Wed, 11 Mar 2015 17:58:04 +0100
Jim Meyering <jim <at> meyering.net> 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, schwab <at> suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."




Reply sent to Jim Meyering <jim <at> meyering.net>:
You have taken responsibility. (Wed, 11 Mar 2015 17:34:03 GMT) Full text and rfc822 format available.

Notification sent to Andreas Schwab <schwab <at> suse.de>:
bug acknowledged by developer. (Wed, 11 Mar 2015 17:34:04 GMT) Full text and rfc822 format available.

Message #16 received at 20080-done <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: Andreas Schwab <schwab <at> suse.de>
Cc: 20080-done <at> debbugs.gnu.org
Subject: Re: bug#20080: '.' fails to match null byte
Date: Wed, 11 Mar 2015 10:32:38 -0700
tags 20080 notabug
thanks

On Wed, Mar 11, 2015 at 9:58 AM, Andreas Schwab <schwab <at> suse.de> wrote:
> Jim Meyering <jim <at> meyering.net> 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 bug report and
will open a new one.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 09 Apr 2015 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 42 days ago.

Previous Next


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