GNU bug report logs - #25283
grep: (standard input): invalid argument when run from make

Previous Next

Package: grep;

Reported by: Benno Fünfstück <benno.fuenfstueck <at> gmail.com>

Date: Tue, 27 Dec 2016 18:29:01 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


Message #10 received at 25283-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Benno Fünfstück <benno.fuenfstueck <at> gmail.com>
Cc: 25283-done <at> debbugs.gnu.org
Subject: Re: bug#25283: grep: (standard input): invalid argument when run from
 make
Date: Tue, 27 Dec 2016 11:23:32 -0800
[Message part 1 (text/plain, inline)]
Thanks for reporting that problem. I wonder why GNU 'make' sets stdout to append 
mode? That surprises me, and I don't see where POSIX allows it. Anyway, it's 
clearly a bug in 'grep' no matter what 'make' is doing. I wrote up a test case 
for the bug and installed the attached, which is a bit more conservative than 
the patch you submitted.
[0001-grep-fix-bug-with-.-grep-pat-dev-null.txt (text/plain, attachment)]

This bug report was last modified 8 years and 206 days ago.

Previous Next


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