pgas 1262504596 learn bash: use the PIPESTATUS array, posix sh: see http://sdf.org/l/55 and http://pipestatus.sf.net tmr 1314898401 forget tmr 1314898432 learn bash: use the PIPESTATUS array, posix sh: http://pipestatus.sf.net greycat 1329427493 forget greycat 1329427495 learn Bash has a PIPESTATUS array which contains all the return codes of all the commands from the most recent pipeline. sh doesn't, but see http://pipestatus.sf.net