8000 gh-122765: make prompt in activate.csh robust against unbalanced quotes and newlines by JacekDuszenko · Pull Request #123751 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

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

8000
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Sep 17, 2024
Merged
2 changes: 1 addition & 1 deletion Lib/venv/scripts/posix/activate.csh
Original file line number Diff line number Diff line change
Expand Up @@ -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
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
0