GNU bug report logs - #51669
some patterns which should match 0x0 don’t do so

Previous Next

Package: grep;

Reported by: Christoph Anton Mitterer <calestyo <at> scientia.org>

Date: Sun, 7 Nov 2021 17:30:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Christoph Anton Mitterer <calestyo <at> scientia.org>
Cc: 51669 <at> debbugs.gnu.org
Subject: Re: bug#51669: some patterns which should match 0x0 don’t do so
Date: Mon, 8 Nov 2021 11:05:40 -0800
On 11/8/21 06:59, Christoph Anton Mitterer wrote:
> the console output in the 0x02
> case seems to imply that grep already considers it binary (and not text
> file).
> So I thought it would make sense to do the same if it encounters 0x00.

No, because grep is documented to treat 0x00 like newline in some cases, 
such as the case you described. It does not treat 0x02 like newline.




This bug report was last modified 3 years and 252 days ago.

Previous Next


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