[Top][All Lists]

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

[bug #62840] make --version in pipe return SIGPIPE

From: Paul D. Smith
Subject: [bug #62840] make --version in pipe return SIGPIPE
Date: Sat, 30 Jul 2022 13:06:08 -0400 (EDT)

Follow-up Comment #1, bug #62840 (project make):

I'm not convinced that this is a bug.  First, it's highly timing-dependent:
when I tried it it didn't fail:

$ make --version | head -n1
GNU Make 4.3

$ echo $?

Second, you can get similar behavior from other commands; you just have to be
sure that the writer is still trying to write when the reader (head) has
exited.  For example:

$ (/bin/echo one; sleep 1; /bin/echo hi) | head -n1
/bin/echo: write error: Broken pipe

$ echo $?

Here /bin/echo exits with 1 not 141 but it's the same thing with a different
exit code.


Reply to this item at:


Message sent via Savannah

reply via email to

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