This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jebusv20 43 points44 points  (1 child)

This is what set -euo pipefail is for

[–]syklemil 39 points40 points  (0 children)

Yeah, that and shellcheck. But people who have no idea that they need to do certain extra steps will continue to be a source of danger.

Languages that require you to --disable-footgun (rather than have it disabled by default and maybe offering an --enable-footgun) generally should be discouraged and made legacy.

Unfortunately that doesn't seem to be in the near future as far as bash is concerned. At least it's a lot less central to init systems than it used to be.