0
0
mirror of https://github.com/python/cpython.git synced 2024-11-29 00:56:12 +01:00

gh-122765: make prompt in activate.csh robust against unbalanced quotes and newlines (GH-123751)

This commit is contained in:
Jacek 2024-09-17 19:16:43 +02:00 committed by GitHub
parent f4dd440210
commit a15a584bf3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,7 @@ setenv VIRTUAL_ENV_PROMPT "__VENV_PROMPT__"
set _OLD_VIRTUAL_PROMPT="$prompt"
if (! "$?VIRTUAL_ENV_DISABLE_PROMPT") then
set prompt = "(__VENV_PROMPT__) $prompt"
set prompt = "(__VENV_PROMPT__) $prompt:q"
endif
alias pydoc python -m pydoc

View File

@ -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.