Skip to content

Commit 36f8a99

Browse files
committed
Better handle missing PROMPT_COMMAND
1 parent 405d259 commit 36f8a99

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

shell/bash_shell.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func (shell *BashShell) Enter() error {
4040
source ~/.bashrc
4141
4242
if [ -z "${OLD_PROMPT_COMMAND+x}" ]; then
43-
OLD_PROMPT_COMMAND="$PROMPT_COMMAND"
43+
OLD_PROMPT_COMMAND="${PROMPT_COMMAND:-true}"
4444
fi
4545
if [ -z "${OLD_PS1+x}" ]; then
4646
OLD_PS1="$PS1"

0 commit comments

Comments
 (0)