4 ms·
> In shell scripts, if one branch exits with a nonzero exit code, the other branch is taken. > 0 exit code is reported for all processes, no matter how they te
by bashinator 6y ago
> In shell scripts, if one branch exits with a nonzero exit code, the other branch is taken.
> 0 exit code is reported for all processes, no matter how they terminate.
These two things are mutually exclusive - shell script branching is usually based off of exit codes.
- quesera 6y agoI read that, and I thought that. But then I decided that the GP was probably throwing out suggestions, not developing an internally-consistent model for the final design. :)
- dllthomas 6y agoNot quite mutually exclusive, I think. The combination just means we always try the "true" path first, in our depth-first search of paths out of the script.