It stops execution of a script if a command fails.
A notable exception is an if
statement. eg:
set -efalseecho never executed
set -eif false; then echo never executedfiecho executedfalseecho never executed
It stops execution of a script if a command fails.
A notable exception is an if
statement. eg:
set -efalseecho never executed
set -eif false; then echo never executedfiecho executedfalseecho never executed