On 04/16/2014 12:23 PM, Dag-Erling Smørgrav wrote:
Eitan Adler <lists@xxxxxxxxxxxxxx> writes:
Dag-Erling Smørgrav <des@xxxxxx> writes:
What OS are you on? It is impossible for cat(1) on either Linux
(GNU coreutils) or BSD to return anything other than 0 or 1.
It can when killed by a signal:
Does the shell report signal + 128 when a process is killed by a signal?
That's unfortunate, as 141 is a perfectly valid exit code (0 - 255).
But if that is the case, 141 is SIGPIPE.
Isn't that behavior pretty much required by POSIX? "The exit status of a
command that terminated because it received a signal shall be reported
as greater than 128."
Christian
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev