From dcedafdc44594ff2e716500594e79451194e9250 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Mon, 26 Apr 2021 15:40:53 -0400 Subject: [PATCH] fix: Bash callstack correction --- runtime/experiments/bash_libraries/panic.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/experiments/bash_libraries/panic.sh b/runtime/experiments/bash_libraries/panic.sh index 8533823..a204315 100644 --- a/runtime/experiments/bash_libraries/panic.sh +++ b/runtime/experiments/bash_libraries/panic.sh @@ -10,7 +10,7 @@ __common_dump_callstack() { echo "Call Stack:" # Skip the dump_bash_stack and error_msg_frames for ((i = 2; i < ${#FUNCNAME[@]}; i++)); do - printf "\t%d - %s\n" "$((i - 2))" "${FUNCNAME[i]} (${BASH_SOURCE[i + 1]}:${BASH_LINENO[i]})" + printf "\t%d - %s\n" "$((i - 2))" "${FUNCNAME[i]} (${BASH_SOURCE[i + 1]}:${BASH_LINENO[i + 1]})" done }