Closed
Description
Issue
Consider the following batch script:
python -m virtualenv --quiet venv
CALL venv\Scripts\activate.bat
REM spam
CALL deactivate.bat
REM eggs
The expected output is:
W:\>python -m virtualenv --quiet venv
W:\>CALL venv\Scripts\activate.bat
(venv) W:\>REM spam
(venv) W:\>CALL deactivate.bat
W:\>REM eggs
The actual output is:
W:\>python -m virtualenv --quiet venv
W:\>CALL venv\Scripts\activate.bat
This is caused by @echo off
at the beginning of both scripts that need to be undone after calling them:
python -m virtualenv --quiet venv
CALL venv\Scripts\activate.bat
@ECHO ON
REM spam
CALL deactivate.bat
@ECHO ON
REM eggs
Environment
- OS: Windows 10
pip list
: not relevant
Output of the virtual environment creation
Also not really relevant. virtualenv
version 20.16.4.
Activity
gaborbernat commentedon Sep 6, 2022
PR welcome. Also, try please the latest release, that's the only version really supported, and yes it might be relevant.
Do not disable echo for subsequent commands in batch activators (pypa…
Do not turn echo off for subsequent commands in batch activators (pyp…
Do not turn echo off for subsequent commands in batch activators (#2411…
⬆️ Bump virtualenv from 20.15.1 to 20.16.5 (#43)