Skip to content

Commit

Permalink
don't rely on extended globbing
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelicWizard committed Oct 19, 2021
1 parent 00818e7 commit c842e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bash-preexec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ __bp_preexec_invoke_exec() {
fi

local this_command
if [[ "$HISTCONTROL" == *ignore+(both|space)* ]]
if [[ "$HISTCONTROL" == *"ignorespace"* || "$HISTCONTROL" == *"ignoreboth"* ]]
then
this_command="${BASH_COMMAND:-}"
local __bp_ignorespace=
Expand Down

0 comments on commit c842e9a

Please sign in to comment.