pgas 1262504558 learn bash: use the PIPESTATUS array, posix sh: see http://sdf.org/l/55 and http://pipestatus.sf.net pgas 1262504590 forget