Skip to content

Commit c842e9a

Browse files
committed
don't rely on extended globbing
1 parent 00818e7 commit c842e9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bash-preexec.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ __bp_preexec_invoke_exec() {
235235
fi
236236

237237
local this_command
238-
if [[ "$HISTCONTROL" == *ignore+(both|space)* ]]
238+
if [[ "$HISTCONTROL" == *"ignorespace"* || "$HISTCONTROL" == *"ignoreboth"* ]]
239239
then
240240
this_command="${BASH_COMMAND:-}"
241241
local __bp_ignorespace=

0 commit comments

Comments
 (0)