summaryrefslogtreecommitdiffstats
path: root/Lib/venv
diff options
context:
space:
mode:
authorGILGAMESH <~@gilgamesh.cc>2024-02-02 18:59:53 (GMT)
committerGitHub <noreply@github.com>2024-02-02 18:59:53 (GMT)
commit7e2703bbff09c3c72c225790e5c71f423351b2d1 (patch)
treef37a7421335575a06f5b23ab30e0857886739b5c /Lib/venv
parentc12240ed28aac6494750e00143bc550c4d6d8ad1 (diff)
downloadcpython-7e2703bbff09c3c72c225790e5c71f423351b2d1.zip
cpython-7e2703bbff09c3c72c225790e5c71f423351b2d1.tar.gz
cpython-7e2703bbff09c3c72c225790e5c71f423351b2d1.tar.bz2
Update venv activate.bat to escape custom PROMPT variables on Windows (GH-114885)
Diffstat (limited to 'Lib/venv')
-rw-r--r--Lib/venv/scripts/nt/activate.bat4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/venv/scripts/nt/activate.bat b/Lib/venv/scripts/nt/activate.bat
index 2c98122..dd5ea8e 100644
--- a/Lib/venv/scripts/nt/activate.bat
+++ b/Lib/venv/scripts/nt/activate.bat
@@ -15,8 +15,8 @@ if not defined PROMPT set PROMPT=$P$G
if defined _OLD_VIRTUAL_PROMPT set PROMPT=%_OLD_VIRTUAL_PROMPT%
if defined _OLD_VIRTUAL_PYTHONHOME set PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%
-set _OLD_VIRTUAL_PROMPT=%PROMPT%
-set PROMPT=(__VENV_PROMPT__) %PROMPT%
+set "_OLD_VIRTUAL_PROMPT=%PROMPT%"
+set "PROMPT=(__VENV_PROMPT__) %PROMPT%"
if defined PYTHONHOME set _OLD_VIRTUAL_PYTHONHOME=%PYTHONHOME%
set PYTHONHOME=