[Bug 37330] New: FOR command doesn't work in CMD
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(a)winehq.org Reporter: vicmarcal(a)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. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=37330 Ken Sharp <imwellcushtymelike(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Ken Sharp <imwellcushtymelike(a)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 -- 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.
https://bugs.winehq.org/show_bug.cgi?id=37330 Bruno Jesus <00cpxxx(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #2 from Bruno Jesus <00cpxxx(a)gmail.com> --- Closing invalid bugs. -- 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.
participants (1)
-
wine-bugs@winehq.org