I would add `set -u` into your advice for `set -eo pipefail`, i.e. `set -euo pipefail` An enhancement to that is to fail early in a script with useful feedback. ``` : ${FOO:?You have not set the FOO variable} ```