projects
/
errhandle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
364203b
)
fix regression from set -u commit
author
Ian Kelling
<iank@fsf.org>
Thu, 26 Jul 2018 00:41:36 +0000
(20:41 -0400)
committer
Ian Kelling
<iank@fsf.org>
Thu, 26 Jul 2018 00:41:36 +0000
(20:41 -0400)
err
patch
|
blob
|
blame
|
history
diff --git
a/err
b/err
index 4e5a1da96efc069f45f568338d3caf5d4649e1aa..4a68f0a00981b157649e1ebf93b1af3cbac7d7d8 100644
(file)
--- a/
err
+++ b/
err
@@
-70,7
+70,7
@@
err-catch() {
echo "${BASH_SOURCE[1]}:${BASH_LINENO[0]}:in \`$BASH_COMMAND' returned $err"
# err trap does not work within an error trap, the following line:
err-bash-trace 2; set -e
- "${_errcatch_cleanup[@]:-
}" # note :-
is to be compatible with set -u
+ "${_errcatch_cleanup[@]:-
:}" # note :-:
is to be compatible with set -u
echo "$0: exiting with code $err"
exit $err
}