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


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: 25283 <at> debbugs.gnu.org, benno.fuenfstueck <at> gmail.com
Subject: bug#25283: grep: (standard input): invalid argument when run from make
Date: Tue, 27 Dec 2016 14:14:38 -0800
Mike Frysinger wrote:

> this fails:
> 	(make -v | grep .) >/dev/null 2>&1
>
> but this works:
> 	(make -v | grep .) >/dev/null 2>/dev/null

That's the same issue, because GNU 'make' sets stderr's O_APPEND flag too, so in 
the former case grep's stdout is in append mode whereas in the latter case it's not.




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.