The BASH debugger indicates its readiness to read a command by printing a string called the prompt. This string is normally:
bashdb${_Dbg_less}${#_Dbg_history[@]}${_Dbg_greater}$_Dbg_space
When variables inside the the prompt string are evaluated, the above becomes something like ‘bashdb<5>’ if this is the fifth command executed or perhaps ‘bashdb<<2>>’ if you have called the debugger from inside a debugger session and this is the second command inside the debugger session or perhaps ‘bashdb<(6)>’ if you entered a subshell after the fifth command.
You can change the prompt string with the set prompt
command,
although it is not normally advisable to do so without understanding
the implications. If you are using the DDD GUI, it changes the
changes the prompt and should not do so. In certain other
circumstances (such as writing a GUI like DDD), it may be is useful
to change the prompt.
Note: set prompt
does not add a space for you after the
prompt you set. This allows you to set a prompt which ends in a space
or a prompt that does not. Furthermore due to a implementation
limitation (resulting from a limitation of the bash built-in function
“read”), to put a space at the end of the prompt use the
‘$_Dbg_space’ variable.