I'm @balupton, author of dorothy which is the largest public bash codebase that I am aware of.
Dorothy is coded using set -e
(errexit) to avoid || return $?
statements on every single one of its thousands of lines of code, for the most part this has worked well, however I was suprised when the down
command would report a failure via:
- https://github.com/bevry/dorothy/blob/107a34dd01f73b8fc53aee032d7dffe5e7aee5b5/commands/down#L293-L307
- https://github.com/bevry/dorothy/blob/107a34dd01f73b8fc53aee032d7dffe5e7aee5b5/commands/eval-helper#L119
However it would also report a success within the called function: