in reply to Re^2: Capture Exit Code Using Pipe & Tee
in thread Capture Exit Code Using Pipe & Tee

the code wasn't actually returning the error code for the make file as far as i could tell. I used it to run any program, and had to add this at the end:
exit $exit;

Replies are listed 'Best First'.
Re^4: Capture Exit Code Using Pipe & Tee
by ikegami (Patriarch) on Jul 08, 2010 at 22:11 UTC

    the code wasn't actually returning the error code for the make file as far as i could tell.

    Correct, because that wasn't the question. The question was about obtaining make's exit code.