bug-grep
[Top][All Lists]
Advanced

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

bug#50129: -f - option doesn't respond to single EOF from TTY.


From: Paul Eggert
Subject: bug#50129: -f - option doesn't respond to single EOF from TTY.
Date: Sat, 21 Aug 2021 10:50:30 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

On 8/20/21 8:25 AM, Paul Eggert wrote:

(Not that anyone would ever want to *use* plain "grep -f -", except perhaps to file bug reports....)

I discovered a more-artificial case where grep messes up even on modern platforms, namely 'grep -f - -f -' where grep essentially ignores the second '-f -'. I installed the attached to fix that, along with another bug where grep wasn't reporting fclose errors.

I think these bugs are so unlikely and artificial that they're not worth mentioning in NEWS.

As a side effect, this patch might fix the bug#50129 problem on your old platform. Hard to say.

Attachment: 0001-grep-avoid-sticky-problem-with-f-f.patch
Description: Text Data


reply via email to

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