projects
/
errhandle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b00260d
)
name function consistently
author
Ian Kelling
<ian@iankelling.org>
Thu, 5 Jun 2014 18:35:23 +0000
(11:35 -0700)
committer
Ian Kelling
<ian@iankelling.org>
Fri, 12 Aug 2016 22:34:39 +0000
(15:34 -0700)
errcatch-function
patch
|
blob
|
blame
|
history
diff --git
a/errcatch-function
b/errcatch-function
index 14ebe335c4a3a304693dc2e13d3a540f2055655e..92751bf99f49c84ae176eb8fba6eb3d9b5c419b8 100644
(file)
--- a/
errcatch-function
+++ b/
errcatch-function
@@
-15,7
+15,7
@@
# General purpose bash error handling setup
# Exit on all errors. Print useful information.
-
catcherr
() {
+
errcatch
() {
set -eE;
trap 'echo "${BASH_COMMAND:+BASH_COMMAND=\"$BASH_COMMAND\" }
${FUNCNAME:+FUNCNAME=\"$FUNCNAME\" }${LINENO:+LINENO=\"$LINENO\" }\$?=$?"' ERR