From: Ian Kelling Date: Fri, 2 Aug 2019 11:56:36 +0000 (-0400) Subject: minor comment X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=fd2efba485eeca4ee93c475f97bb3e1bffc52269;p=errhandle.git minor comment --- diff --git a/err b/err index 580183c..73013a8 100644 --- a/err +++ b/err @@ -78,7 +78,8 @@ err-catch() { echo "${BASH_SOURCE[1]}:${BASH_LINENO[0]}: \`$BASH_COMMAND' returned $err" err-bash-trace 2 set -e # err trap does not work within an error trap - "${_errcatch_cleanup[@]:-:}" # note :-: is to be compatible with set -u + # note :-: makes this compatible with set -u. shellcheck doesn't understand. + "${_errcatch_cleanup[@]:-:}" echo "$0: exiting with code $err" exit $err }