Closed
Description
env.bat (and maybe others) use a line like the following:
echo ";%PATH%;" | %FINDDIR%\find.exe /C /I ";%WINPYDIR%\;" >nul
find.exe sets the system variable ERRORLEVEL to 1 if it does not find anything.
This is an issue if env.bat is used within other scripts depending on the system variable ERRORLEVEL.
Reasons:
- after calling env.bat it is now necessary to manually reset the ERRORLEVEL variable
1.1. NOTE: cannot be done with set ERRORLEVEL=0 (that creates a new variable hiding the orignal one) - after calling env.bat, it is unclear if the errorlevel was set because of some real error in it
Metadata
Metadata
Assignees
Labels
No labels