https://bugs.winehq.org/show_bug.cgi?id=45731
Bug ID: 45731 Summary: cmd for loops sensitive to whitespace Product: Wine Version: 3.0.2 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: cmd Assignee: wine-bugs@winehq.org Reporter: paleozogt@gmail.com Distribution: ---
Created attachment 62169 --> https://bugs.winehq.org/attachment.cgi?id=62169 test.bat
Wine's CMD is sensitive to whitespace in for-loops.
For example, the following
for /f %%i IN ('dir "%CD%" /b /on') DO ( @echo %%i )
works on both Windows 10 and Wine.
While the following
for /f %%i IN ( 'dir "%CD%" /b /on' ) DO ( @echo %%i )
works on Windows 10, but fails with Wine with "Invalid parameter".