We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1b156b commit 5095a54Copy full SHA for 5095a54
ext/bashplus/lib/bash+.bash
@@ -75,7 +75,7 @@ bash+:die() {
75
[[ $msg =~ $trailing_newline_re ]] && exit 1
76
77
local c=($(caller ${DIE_STACK_LEVEL:-${2:-0}}))
78
- [[ ${#c[@]} -eq 2 ]] &&
+ (( ${#c[@]} == 2 )) &&
79
msg=" at line %d of %s" ||
80
msg=" at line %d in %s of %s"
81
printf "$msg\n" ${c[@]} >&2
0 commit comments