release 4.2.0
This commit is contained in:
@@ -43,8 +43,14 @@ load_conf "debug"
|
||||
# Display a backtrace of the current call stack (innermost frame first), one
|
||||
# line per frame: function, file where it is defined, line of the call site.
|
||||
# Usage: backtrace
|
||||
# shellcheck disable=SC2120 # only --help is a possible argument
|
||||
backtrace()
|
||||
{
|
||||
if [[ "${1:-}" == -h || "${1:-}" == --help ]]; then
|
||||
printf "backtrace: print the current call stack, innermost frame first.\n"
|
||||
printf "Usage: backtrace\n"
|
||||
return 0
|
||||
fi
|
||||
printf "========= Call stack =========\n"
|
||||
local i=1 # We begin at 1 to ignore backtrace itself
|
||||
while [[ $i -lt ${#FUNCNAME[@]} ]]; do
|
||||
|
||||
Reference in New Issue
Block a user