mirror of
https://github.com/python/cpython.git
synced 2026-01-07 16:02:55 +00:00
[3.13] gh-122765: make prompt in activate.csh robust against unbalanced quotes and newlines (GH-123751) (GH-124185)
gh-122765: make prompt in activate.csh robust against unbalanced quotes and newlines (GH-123751)
(cherry picked from commit a15a584bf3)
Co-authored-by: Jacek <jacek.duszenko@gmail.com>
Co-authored-by: Brett Cannon <brett@python.org>
This commit is contained in:
parent
c2cb1a89b7
commit
9aa85f524f
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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…
Add table
Add a link
Reference in a new issue