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
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to