When committing bash crimes..:

๐Ÿ‘Ž set -euo pipefail

๐Ÿ‘ set -o errexit -o nounset -o pipefail

(Give the person reading your script a fighting chance at being able to search the manual for exactly how the heck the cryptic header incantations are influencing shell behaviour in crucial and subtle ways. Greybeards will already know, but it may give a new learner just a bit more of a chance to learn the old magic more easily. Help maintain the front door as well as the foundations and plumbing.)

0
0
0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/gnomon/statuses/115984395188130499 on your instance and quote it. (Note that quoting is not supported in Mastodon.)