exit $exit; [download]
In reply to Re^3: Capture Exit Code Using Pipe & Tee by Anonymous Monk in thread Capture Exit Code Using Pipe & Tee by Anonymous Monk