Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle another edge case in $PROMPT_COMMAND.
In particular: bash-preexec installs itself by appending __bp_install_string to $PROMPT_COMMAND. That means that there's a pretty good change that __bp_install_string will be the last thing in $PROMPT_COMMAND when __bp_install is invoked. If that happens, the $existing_prompt_command logic in __bp_install will result in the pre-existing prompt command followed by `:` and no trailing newline. That situation is not cleaned up by the two existing special cases. Fix rcaloras#153
- Loading branch information