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(a)winehq.org Reporter: huangqinjin(a)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 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.