Does set -e
behave differently here
set -e;
function foo {
}
vs.
function foo {
set -e;
}
does set -e
belong inside functions? Does set -e
declared outside of functions, affect "nested" functions inside a shell file? What about the inverse? Should we call local set -e
lol?
set -e
in a script complex enough as to need functions. Do proper error handling instead.