2 # this file was generated from gen-err and meant to be sourced
4 local -i argc_index
=0 frame i start
=${1:-1} max_indent
=8 indent
7 if [[ $
(shopt -p extdebug
) == *-s* ]]; then
10 for ((frame
=0; frame
< ${#FUNCNAME[@]}-1; frame
++)); do
11 argc
=${BASH_ARGC[frame]}
13 ((frame
< start
)) && continue
14 if (( ${#BASH_SOURCE[@]} > 1 )); then
15 source="${BASH_SOURCE[frame+1]}:${BASH_LINENO[frame]}:"
17 indent
=$
((frame-start
+1))
18 indent
=$
((indent
< max_indent ? indent
: max_indent
))
19 printf "%${indent}s↳%sin \`%s" '' "$source" "${FUNCNAME[frame]}"
21 for ((i
=argc_index-1
; i
>= argc_index-argc
; i--
)); do
22 printf " %s" "${BASH_ARGV[i]}"
30 echo "errallow help: Undo the complimentary errcatch function."
32 set +E
+o pipefail
; trap ERR
36 set -E; shopt -s extdebug
41 echo "${BASH_SOURCE[1]}:${BASH_LINENO[0]}:in \`$BASH_COMMAND' returned $err"
44 "${_errcatch_cleanup[@]}"
45 echo "$0: exiting with code $err"
55 if [[ ${1/[^0-9]/} == "$1" ]]; then
64 echo "${BASH_SOURCE[1]}:${BASH_LINENO[0]}"
66 echo "$0: exiting with code $code"