ash - exit code for a piped process
Alexander Kriegisch
Alexander at Kriegisch.name
Sat Aug 4 13:22:08 UTC 2007
I would like to determine the exit code of 'foo' in
foo | bar
I bash there is the PIPESTATUS array, but in ash (which I must use)
there is no such thing as PIPESTATUS or arrays. Is there any canonical
way or at least a workaround to achieve both piping the foo's output
into bar unconditionally *and* determining foo's exit code?
Thanks
--
Alexander Kriegisch
More information about the busybox
mailing list