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


View this message in rfc822 format

From: Christoph Anton Mitterer <calestyo <at> scientia.org>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 51669 <at> debbugs.gnu.org
Subject: bug#51669: some patterns which should match 0x0 don’t do so
Date: Mon, 08 Nov 2021 01:45:06 +0100
On Sun, 2021-11-07 at 16:37 -0800, Paul Eggert wrote:
> https://www.gnu.org/software/grep/manual/html_node/File-and-Directory-Selection.html
> 
> and look for --binary-files. You can use 'grep -a' to pay more
> attention 
> to binary data.

Well I've had seen that, but why is 0x00 different from 0x02? As shown
in the example above, even *without* -a or similar, it would detect
0x02.

That's what feels a bit strange, IMO.


Cheers,
Chris.




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

Previous Next


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