The exit value is always 0, because it's returning the tee value, and not make. Any and all help is very apprciated.
Not quite. It's returning the error code of the shell invoked to execute the command. system sometimes, but not always, passes the command to /bin/sh. This is one of those times. See the docs for details.
In reply to Re: Capture Exit Code Using Pipe & Tee
by ikegami
in thread Capture Exit Code Using Pipe & Tee
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |