In a bash script/shell, is there a programmatic way to determine if the set -e flag is active?
set -e
I just need a boolean letting me know if it\'s on/off.
From help test:
help test
-o OPTION True if the shell option OPTION is enabled.
Thus:
[ -o errexit ]