Alexander Kriegisch
2007-08-04 13:22:08 UTC
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
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
Alexander Kriegisch