- cross-posted to:
- linux@programming.dev
- cross-posted to:
- linux@programming.dev
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/
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/
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.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.
Here’s a neat tidbit. Using
curl
without-f --fail
will make non-2xx status codes return success, soset -e
won’t help there.Yeah, and that’s just one of many many things to consider.
deleted by creator