in reply to Re: Capture Exit Code Using Pipe & Tee
in thread Capture Exit Code Using Pipe & Tee
Both true and untrue misleading(?). It's getting the return/error code of the shell, yes. However, the shell is getting it from the tee command. If tee were to return 1, the shell would return 1, regardless of what make did.
merlyn's answer is definitely the right track. Doing this in perl is actually not that bad, and though it may take more code than shmem's response, I'm not sure it'd be less readable ;-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Capture Exit Code Using Pipe & Tee
by ikegami (Patriarch) on Jan 31, 2007 at 22:53 UTC |