summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Kluyver <thomas@kluyver.me.uk>2017-12-08 10:57:28 +0000
committerThomas Kluyver <thomas@kluyver.me.uk>2017-12-08 10:57:28 +0000
commit58ec6a81242d8dd7004e72b9f40d423d5809b49d (patch)
tree80608f827bb69e1bd34f9ea3ea3608c9f8e8baad
parente9e75de0431d49b90969d9a05fc701f5c55ee6df (diff)
downloadpexpect-git-58ec6a81242d8dd7004e72b9f40d423d5809b49d.tar.gz
Unset PROMPT_COMMAND when launching bash for replwrap
-rw-r--r--pexpect/bashrc.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/pexpect/bashrc.sh b/pexpect/bashrc.sh
index 9cca406..c734ac9 100644
--- a/pexpect/bashrc.sh
+++ b/pexpect/bashrc.sh
@@ -11,3 +11,6 @@ fi
# Reset PS1 so pexpect can find it
PS1="$"
+
+# Unset PROMPT_COMMAND, so that it can't change PS1 to something unexpected.
+unset PROMPT_COMMAND