What does 'set -euo pipefail' do and why should every bash script start with it?
spaceto flip
-e (errexit): exit on any non-zero exit code. -u (nounset): treat unset variables as errors (prevents rm -rf /$EMPTY_VAR). -o pipefail: pipeline returns the exit code of the last FAILED command, not just the last command. Together, they catch silent failures. Without them, scripts continue after errors, use empty variables, and hide pipeline failures.