deadbeef79000, 3 months ago Yep! I always do this too. TL;DR: e aborts the whole script on a non-zero error. u aborts when using an undefined variable. -o pipefail aborts a piped compound command when one of the piped commands fail. Any other way lies madness. Or erasing the whole filesystem apparently!
Yep! I always do this too.
TL;DR: e aborts the whole script on a non-zero error. u aborts when using an undefined variable. -o pipefail aborts a piped compound command when one of the piped commands fail.
e
u
-o pipefail
Any other way lies madness. Or erasing the whole filesystem apparently!