Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use $BASH_COMMAND if HISTCONTROL is incompatible
When determining the command line, check if `$HISTCONTROL` is configured as expected. If not, then fall back to the built-in variable `$BASH_COMMAND` for a second-best command line. This accounts for when the user either changes `$HISTCONTROL` after loading `bash-preexec`, or otherwise removes/disables `__bp_adjust_histcontrol`.
- Loading branch information