Debugging Bash Like a Sire
Many engineers have a strained relationship with Bash. I love it though, but I’m very aware of it’s limitations when it comes to error handling and data structures (or lack thereof). As a result of these limitations I often see Bash scripts written very defensively that define something like: set -euxo pipefail These are bash builtin options that do more or less sensible things. e: Exit immediately when a non-zero exit status is encountered u: Undefined variables throws an error and exits t