A note from earlier today says the HTML edition will be available soon. I assume that means it will show up here: https://pubs.opengroup.org/onlinepubs/9699919799/

you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 2 years ago (1 child)

All you need to do is set -e at the start of the script to stop on a non-0 exit code. And quote variables to prevent globbing.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 2 years ago (2 children)

    Oh you sweet summer child.

    If you don't use pipes or command substitutions, set -e gets you a fair part of the way there.

    If you're interested, I can look up the rest of the arcane incantations necessary.

  • source
  • parent
  • hideshow 4 child comments