News for hackers. Stuff that matters.
Re:Why doesn't Bash's `set -e` do what I expected? by nikau on Friday October 07, 2022 @12:24AM (#33117423)
Yep that's a valid scenario, if you need more granularity than just fail or success then you will have to use a different method, e.g.

Status=0

Somecommand || status=$?

Then do logic based on status

There are no comments on this comment yet.