« Return to Thread: SIGPIPE warning

SIGPIPE warning

by Pádraig Brady :: Rate this Message:

| View in Thread

I noticed xargs output a warning about SIGPIPE

$ yes 1234 | xargs -n1 | head -n1
1234
xargs: /bin/echo: terminated by signal 13

That's not normally the case on the shell:

$ yes 1234 | head -n1
1234

Nor in other process management utils:

$ timeout 1 yes 1234 | head -n1
1234

Could we supress that warning?
At least for SIGPIPE?

cheers,
Pádraig.

 « Return to Thread: SIGPIPE warning