[Bug 40181] New: cmd: Conditional not applied to multiple commands separated by '&'

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Feb 19 17:40:29 CST 2016


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 at winehq.org
          Reporter: gerbilsoft at 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.

-- 
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.



More information about the wine-bugs mailing list