help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

trap ERR debug stacktrace printing


From: Evan Benn
Subject: trap ERR debug stacktrace printing
Date: Thu, 5 Mar 2020 09:56:44 +1100

Hello,

I am attempting to fix a debug stack trace printer.

https://stackoverflow.com/questions/60483579/bash-err-trap-discards-value-of-args-of-the-failing-command

I have explained the issue there, but basically BASH_COMMAND contains
the failing command and args, but variables are unexpanded making the
trace not particularly useful.

The failing command is evicted from BASH_ARGV by the time trap ERR runs.

Thanks



reply via email to

[Prev in Thread] Current Thread [Next in Thread]