bug-grep
[Top][All Lists]
Advanced

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

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


From: Paul Eggert
Subject: bug#25283: grep: (standard input): invalid argument when run from make
Date: Tue, 27 Dec 2016 14:14:38 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

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.





reply via email to

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