https://bugs.winehq.org/show_bug.cgi?id=40181
Bug ID: 40181 Summary: cmd: Conditional not applied to multiple commands separated by '&' Product: Wine Version: 1.9.3 Hardware: x86 URL: http://store.dshack.org/index.php?/file/164-ctgp-7-off icial-download/ OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: cmd Assignee: wine-bugs@winehq.org Reporter: gerbilsoft@gerbilsoft.com Distribution: ---
In a batch file, if using a conditional to execute a series of commands separated by ampersands, only the first command has the conditional applied; the remaining commands are always run.
Example:
if "A"=="B" echo OK & echo ERROR
Expected results: Nothing is printed. Actual results: "ERROR" is printed.
Both Windows 7 and Windows 10 have the expected behavior. wine-1.7.55 and 1.9.3 have the incorrect result.
This affects the batch file used by CTGP-7, a Mario Kart 7 modding utility.
https://bugs.winehq.org/show_bug.cgi?id=40181
David Korth gerbilsoft@gerbilsoft.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE
--- Comment #1 from David Korth gerbilsoft@gerbilsoft.com --- I didn't see this at the time, but apparently this bug was already reported.
Bug #33636: wine cmd: invalid behaviour of '&' operator
*** This bug has been marked as a duplicate of bug 33636 ***
https://bugs.winehq.org/show_bug.cgi?id=40181
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #2 from Bruno Jesus 00cpxxx@gmail.com --- Closing duplicate bugs.