This fixes an obscure error that occurs when the original $PROMPT_COMMAND contains new lines For example if original $PROMPT_COMMAND is: ``` __bp_trap_string="$(trap -p DEBUG)" trap DEBUG __bp_install ``` this then results to the prompt var being set to: ``` setLastCommandState; __bp_trap_string="$(trap -p DEBUG)" trap DEBUG __bp_install ;setGitPrompt ``` which then blows up during `eval` with obscure: ``` bash: PROMPT_COMMAND: line 4: syntax error near unexpected token `;' bash: PROMPT_COMMAND: line 4: `;setGitPrompt' ```master
parent
3ff1a56cd5
commit
40958b34d8
Loading…
Reference in new issue