https://bugs.winehq.org/show_bug.cgi?id=57147
Bug ID: 57147 Summary: exit /B doesn't break for loop 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: ---
The test.bat script print all `dir` output. But on Windows only one line is printed.
test.bat:
@echo off
for /F "delims=" %%G in ('dir') do ( echo "%%G" exit /B 0 )