News for hackers. Stuff that matters.
Re:Suicide Linux (2009) by bashinator on Thursday October 01, 2020 @01:44PM (#24653931)
> 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.

Re:Suicide Linux (2009) by quesera on Thursday October 01, 2020 @03:07PM (#24654962)
I 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. :)

Re:Suicide Linux (2009) by dllthomas on Thursday October 01, 2020 @03:15PM (#24655065)
Not 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.