https://bugs.winehq.org/show_bug.cgi?id=57137
Bug ID: 57137 Summary: endlocal changes CWD if pushd/popd are called before Product: Wine Version: 9.16 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: cmd Assignee: wine-bugs@winehq.org Reporter: huangqinjin@gmail.com Distribution: ---
Run test.bat, got output
Z:\home Z:\home\huangqinjin Z:\home
test.bat:
@echo off
pushd "%~dp0.." cd popd
setlocal cd endlocal cd