in reply to Capture Exit Code Using Pipe & Tee
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Capture Exit Code Using Pipe & Tee
by Tanktalus (Canon) on Jan 31, 2007 at 22:09 UTC | |
by ikegami (Patriarch) on Jan 31, 2007 at 22:53 UTC |