in reply to Re: Handling weird return values with or die
in thread Handling weird return values with or die
The return values of spawned process have nothing to do with the shell. It's the other way around. Processes typically return 0 indicating success, and anything else for failure. There's no global variable to set, all they can do is return a single integer. "0 on success" is a mere convention. It's just because this convention is followed so often, typical shell Boolean logic is "reversed"; 0 is true, other integers are false.
-- Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Handling weird return values with or die
by mvaline (Friar) on Jul 05, 2001 at 20:37 UTC |