We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 290b297 commit f558191Copy full SHA for f558191
bash-preexec.sh
@@ -309,7 +309,7 @@ __bp_install_after_session_init() {
309
310
# If there's an existing PROMPT_COMMAND capture it and convert it into a function
311
# So it is preserved and invoked during precmd.
312
- if [[ -n "$PROMPT_COMMAND" ]]; then
+ if [[ -n "${PROMPT_COMMAND:-}" ]]; then
313
eval '__bp_original_prompt_command() {
314
'"$PROMPT_COMMAND"'
315
}'
@@ -325,6 +325,6 @@ __bp_install_after_session_init() {
325
}
326
327
# Run our install so long as we're not delaying it.
328
-if [[ -z "$__bp_delay_install" ]]; then
+if [[ -z "${__bp_delay_install:-}" ]]; then
329
__bp_install_after_session_init
330
fi;
0 commit comments