diff --git a/test/bash-preexec.bats b/test/bash-preexec.bats index 3d3f6b7..0d970f6 100644 --- a/test/bash-preexec.bats +++ b/test/bash-preexec.bats @@ -79,7 +79,7 @@ set_exit_code_and_run_precmd() { eval_PROMPT_COMMAND - [[ "$PROMPT_COMMAND" != *"trap DEBUG"* ]] || return 1 + [[ "$PROMPT_COMMAND" != *"trap - DEBUG"* ]] || return 1 [[ "$PROMPT_COMMAND" != *"__bp_install"* ]] || return 1 }