News for hackers. Stuff that matters.
Re:It's not what programming languages do, it's what they sh... by marcosdumay on Friday March 27, 2020 @09:46AM (#22702763)
Bash shepherds you into ignoring errors and using maybe-blank values everywhere.
Re:It's not what programming languages do, it's what they sh... by l0b0 on Friday March 27, 2020 @04:21PM (#22706463)
You can improve that situation somewhat by starting scripts with `set -o errexit -o noclobber -o nounset -o pipefail` and `shopt -s failglob` to fail fast.
Re:It's not what programming languages do, it's what they sh... by marcosdumay on Saturday March 28, 2020 @12:40PM (#22712260)
Yes, this makes things better.

But then you will have to deal with the non-negligible amount of programs that use the exit value to return information. It is still better to place exceptions on failing code than to ignore errors that can wipe out your entire system, but it's not really good either way.