Skip to content

Commit 2e7de57

Browse files
committed
don't rely on extended globbing
1 parent 1bc7399 commit 2e7de57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bash-preexec.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ __bp_preexec_invoke_exec() {
239239
fi
240240

241241
local this_command
242-
if [[ "$HISTCONTROL" == *ignore+(both|space)* ]]
242+
if [[ "$HISTCONTROL" == *"ignorespace"* || "$HISTCONTROL" == *"ignoreboth"* ]]
243243
then
244244
this_command="${BASH_COMMAND:-}"
245245
local __bp_ignorespace=

0 commit comments

Comments
 (0)