bug-grep
[Top][All Lists]
Advanced

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

bug#30326: grep not searching through a text file (thinking it binary)


From: Paul Eggert
Subject: bug#30326: grep not searching through a text file (thinking it binary)
Date: Fri, 2 Feb 2018 15:09:06 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2

On 02/02/2018 12:09 PM, L A Walsh wrote:
Grep was able to find text strings in mboxes without a POSIX
definition telling it that it was "broken".

It's not a question of POSIX telling us what to do. It's a question of what is a good thing for GNU grep to do, and making sure that this behavior conforms to POSIX (at least if POSIXLY_CORRECT is set).

When grep encounters binary data, there are different "good" things to do depending on the application, so grep has options. The behavior you're asking for is available as an option. As I understand it, the main point of your bug report is that you want the option to be the default behavior. However, that would adversely affect some other common uses of grep and it's not clear that it's a good idea.






reply via email to

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