+# Use source ~/.bashrc instead of doing bash -l when running a script
+# so this can set extdebug and avoid the bash debugger.
+if [[ -s /a/bin/errhandle/err ]]; then
+ source /a/bin/errhandle/err
+elif [[ -s ~/.iank/err ]]; then
+ # shellcheck source=/a/bin/errhandle/err
+ source ~/.iank/err
+fi
+
+# for testing error catching:
+# t2() {
+# echo t2
+# grep sdf sdfd
+# echo wtf
+# }
+# t1() {
+# echo t1
+# t2 a b c
+# }