News for hackers. Stuff that matters.
Re:Why doesn't Bash's `set -e` do what I expected? by somat on Thursday October 06, 2022 @11:11PM (#33117011)
A lot of the sins of shell are from it's primary role as an interactive interface to the computer. it's use as a scripting language was a nice secondary goal.

On the one hand it is nice to have your interactive interface and your scripts be the same language. on the other it is a bit horrifying the way all those convenient interactive features make your programs so prone to failure.

Re:Why doesn't Bash's `set -e` do what I expected? by justin_oaks on Friday October 07, 2022 @04:13PM (#33126352)
We'd probably all be better off if our scripts weren't in the same language as used by our interactive interface. I do paste snippets of scripting (if, for, etc.) into my interactive terminal from time to time, but that's rare compared to just typing commands to run.

I wouldn't mind it if all scripting in the shell had to be offloaded to a completely separate language that was less error prone and more consistent.