https://bugs.winehq.org/show_bug.cgi?id=37330
Bug ID: 37330 Summary: FOR command doesn't work in CMD Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: cmd Assignee: wine-bugs@winehq.org Reporter: vicmarcal@hotmail.com
The bug appears when testing:
wine cmd /C for /R %i in (*.exe) do %i
Seems there is a parsing error:
$ wine cmd /C for /R %i in (*.exe) do %i
syntax error near unexpected token `(' `wine cmd /C for /R %i in (*.exe) do %i' The command "wine cmd /C for /R %i in (*.exe) do %i" exited with 1.
The problem seems with the parsing since if I create a batch file(script.bat) with: for /R %%i in (*.exe) do %%i
and afterwards issue a: wine cmd script.bat
The script is correctly executed.