• Bash implicitly disabled set -e for this function invocation because it's inside a command substitution. Add set -e; before it or enable inherit_errexit.
  • Problematic code:
  • Correct code:
  • Rationale:
  • Exceptions:
  • Related resources: