On Fri, Jun 13, 2025 at 07:57:54 -0600, Stan Marsh wrote: > Also, note that if you are running with "set -e" (or "trap ... ERR"), then > having > "let" (or "(( ))") return a non-zero exit status when it happens to evaluate > to zero, > could cause an unexpected script abort.
This is why I linked to <https://mywiki.wooledge.org/BashFAQ/105#Exercises> which calls out precisely that issue. The whole page is dedicated to set -e and the problems that it creates.