bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#51669: some patterns which should match 0x0 don’t do so


From: Paul Eggert
Subject: bug#51669: some patterns which should match 0x0 don’t do so
Date: Mon, 8 Nov 2021 11:05:40 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.1

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]