the err* functions depend on bash-trace.
-For scripts which don't or hardly contains functions, this is usually sufficient:
+For scripts without any nested function calls, this is usually sufficient:
set -eE -o pipefail
trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
Related: see my bash script template repo.
-Patches, bugs, and any feedback is very welcome via email to
-Ian Kelling <ian@iankelling.org>.
+Please email me if you have a patches, bugs, feedback, or republish this
+somewhere else: Ian Kelling <ian@iankelling.org>.