From 217898a288dec99695cff155fdb32966aa332447 Mon Sep 17 00:00:00 2001 From: Sigmund Vik Date: Fri, 22 Oct 2021 12:02:54 +0200 Subject: [PATCH 1/2] Remove stray closing parenthesis in activate.bat This stray closing parenthesis caused problems when running activate.bat in e.g. TCC (Take Command Console): [Work] Fri 22-10-21 11:59 0.097 120G d:\virtualenv_test>.venv\Scripts\activate.bat TCC: D:\virtualenv_test\.venv\Scripts\activate.bat [22] Unknown command ")" (It is a bit odd that cmd.exe silently ignores the stray parenthesis, that CLI never ceases to surprise!) --- src/virtualenv/activation/batch/activate.bat | 1 - 1 file changed, 1 deletion(-) diff --git a/src/virtualenv/activation/batch/activate.bat b/src/virtualenv/activation/batch/activate.bat index c0949ba83..2ce9e5ac8 100644 --- a/src/virtualenv/activation/batch/activate.bat +++ b/src/virtualenv/activation/batch/activate.bat @@ -17,7 +17,6 @@ if not defined VIRTUAL_ENV_DISABLE_PROMPT ( if NOT DEFINED ENV_PROMPT ( for %%d in ("%VIRTUAL_ENV%") do set "ENV_PROMPT=(%%~nxd) " ) - ) set "PROMPT=%ENV_PROMPT%%PROMPT%" ) From 642225b7ea82511a77f23544f6323f3f0903389b Mon Sep 17 00:00:00 2001 From: Sigmund Vik Date: Fri, 22 Oct 2021 14:29:12 +0200 Subject: [PATCH 2/2] Add changelog entry --- docs/changelog/2221.bugfix.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 docs/changelog/2221.bugfix.rst diff --git a/docs/changelog/2221.bugfix.rst b/docs/changelog/2221.bugfix.rst new file mode 100644 index 000000000..ff7580ff9 --- /dev/null +++ b/docs/changelog/2221.bugfix.rst @@ -0,0 +1 @@ +Remove stray closing parenthesis in activate.bat - by :user:`SiggyBar`.