Merge pull request #2478 from jparise/bash-preexec-histcontrol

bash: stop modifying HISTCONTROL in bash-preexec.sh
This commit is contained in:
Mitchell Hashimoto
2024-10-23 09:51:21 -07:00
committed by GitHub

View File

@ -310,7 +310,13 @@ __bp_install() {
fi fi
# Adjust our HISTCONTROL Variable if needed. # Adjust our HISTCONTROL Variable if needed.
__bp_adjust_histcontrol #
# GHOSTTY: Don't modify HISTCONTROL. This hack is only needed to improve the
# accuracy of the command argument passed to the preexec functions, and we
# don't use that argument in our bash shell integration script (and nor does
# the __bp_original_debug_trap function above, which is the only other active
# preexec function).
#__bp_adjust_histcontrol
# Issue #25. Setting debug trap for subshells causes sessions to exit for # Issue #25. Setting debug trap for subshells causes sessions to exit for
# backgrounded subshell commands (e.g. (pwd)& ). Believe this is a bug in Bash. # backgrounded subshell commands (e.g. (pwd)& ). Believe this is a bug in Bash.