Comment

Comment by creativemonkeys

If I'm using "-e", I also like to use "set -o pipefail" which will fail the script if any command in a pipeline fails too: x | y | z, which is useful if 'y' fails but 'z' continues to process the output and returns 0, -e won't catch that (the example script doesn't use pipes though).

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton