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

Previous Next

Package: grep;

Reported by: Kaz Kylheku <kaz <at> kylheku.com>

Date: Fri, 20 Aug 2021 01:01:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #25 received at 50129 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Kaz Kylheku <kaz <at> kylheku.com>
Cc: 50129 <at> debbugs.gnu.org
Subject: Re: bug#50129: -f - option doesn't respond to single EOF from TTY.
Date: Sat, 21 Aug 2021 10:50:30 -0700
[Message part 1 (text/plain, inline)]
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.
[0001-grep-avoid-sticky-problem-with-f-f.patch (text/x-patch, attachment)]

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

Previous Next


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