Skip to content
4 changes: 2 additions & 2 deletions Lib/venv/scripts/posix/activate.csh
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ setenv PATH "$VIRTUAL_ENV/__VENV_BIN_NAME__:$PATH"
setenv VIRTUAL_ENV_PROMPT "__VENV_PROMPT__"


set _OLD_VIRTUAL_PROMPT="$prompt"
set _OLD_VIRTUAL_PROMPT="$prompt:q"

if (! "$?VIRTUAL_ENV_DISABLE_PROMPT") then
set prompt = "(__VENV_PROMPT__) $prompt"
set prompt = "(__VENV_PROMPT__) $prompt:q"
endif

alias pydoc python -m pydoc
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix unbalanced quote errors occurring when activate.csh in :mod:`venv` was sourced with a custom prompt containing unpaired quotes or newlines.
Loading