News for hackers. Stuff that matters.
Re:Why doesn't Bash's `set -e` do what I expected? by Ferret7446 on Friday October 07, 2022 @02:27AM (#33118061)
Your original claim is disingenuous.

Of course

  cond = false
  if cond; then x; else (if cond; then echo msg); fi
does not do the same thing as

  cond = true
  if cond; then (if cond; then echo msg); else x; fi
Bash is not somehow strange in this regard.
Re:Why doesn't Bash's `set -e` do what I expected? by dataflow on Friday October 07, 2022 @02:36AM (#33118107)
There's neither anything disingenuous about my claim. Bash's behavior is quite unique and unexpected to most people in the examples I showed. And I don't appreciate the attack.