bug-grep
[Top][All Lists]
Advanced

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

bug#23763: Bug report: Grep stops, if a text file contains a null charac


From: Bjoern Voigt
Subject: bug#23763: Bug report: Grep stops, if a text file contains a null character after 32768 bytes
Date: Tue, 14 Jun 2016 10:26:09 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40

What about the inconsistent output?

Grep should not print a mixture of text matches and then exits with a
binary match and exit code 0:

# ./null-bug-testcase.txt
[...]
A
A
A
Binary file testfile.txt matches
Exit code of grep: 0

This is clearly a bug in my eyes.

Is a patch welcome, which fixes this inconsistency? Currently I am
analyzing grep in debugging sessions.





reply via email to

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