in reply to system and $?
If $? isn't -1, it means the shell was required and it was successfully executed. If the shell failed to execute the command, it will communicate this via $?. It chooses what value to return.
If you want more precise diagnostics, don't invoke the shell.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: system and $?
by rovf (Priest) on Aug 26, 2009 at 14:21 UTC |