With UDM installed, running a shell script interactively causes debugger traps to activate for any non-zero exit status inside the script. This will either spawn a bashdb session, or if it's not installed it will complain about it missing like so:
yunake@core:~$ xrandr-current-output
/home/yunake/bin/xrandr-current-output: /usr/share/bashdb/bashdb-main.inc: No such file or directory
/home/yunake/bin/xrandr-current-output: warning: cannot start debugger; debugging mode disabled
DP1
yunake@core:~$
Of course, having the debugger installed is even worse since it means the script will drop into interactive debugging session and fail to complete.
I don't know how to fix this properly — I don't see a way to implement pre-exec hack in such a way that doesn't trigger debugger as a side effect.
As a work-around, one can simply create empty debugger hook file, this will suppress the messages:
With UDM installed, running a shell script interactively causes debugger traps to activate for any non-zero exit status inside the script. This will either spawn a
bashdb
session, or if it's not installed it will complain about it missing like so:Of course, having the debugger installed is even worse since it means the script will drop into interactive debugging session and fail to complete.
I don't know how to fix this properly — I don't see a way to implement pre-exec hack in such a way that doesn't trigger debugger as a side effect.
As a work-around, one can simply create empty debugger hook file, this will suppress the messages: