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.
https://bugs.winehq.org/show_bug.cgi?id=37330
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID
--- Comment #1 from Ken Sharp imwellcushtymelike@gmail.com --- That's not a parsing error at all. You need to escape ( and ) in the shell. It has nothing to do with Wine.
$ wine cmd /C for /R %i in (*.exe) do %i
https://bugs.winehq.org/show_bug.cgi?id=37330
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #2 from Bruno Jesus 00cpxxx@gmail.com --- Closing invalid bugs.