Subject: bug#25283: grep: (standard input): invalid argument when run from make

From: Paul Eggert <[email-masked]>
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.