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.