Daily Shaarli

All links of one day in a single page.

January 19, 2019

Why doesn't set -e (or set -o errexit, or trap ERR) do what I expected

BashFAQ/105 - Greg's Wiki

set -e was an attempt to add "automatic error detection" to the shell. Its goal was to cause the shell to abort any time an error occurred, so you don't have to put || exit 1 after each important command.

The Brain Maps Out Ideas and Memories Like Spaces | Quanta Magazine