exec(bash => (-c => 'com1 | com2; exit $PIPESTATUS[0]')); [download]
In reply to Re^3: Returning status to parent from pipe by ikegami in thread Returning status to parent from pipe by morrin