[Bug 44952] New: Batch with for and if

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Apr 10 05:57:01 CDT 2018


https://bugs.winehq.org/show_bug.cgi?id=44952

            Bug ID: 44952
           Summary: Batch with for and if
           Product: Wine
           Version: 3.5
          Hardware: x86-64
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: cmd
          Assignee: wine-bugs at winehq.org
          Reporter: jonathanbelsewir at yahoo.de
      Distribution: ---

I have a batch-file:

@echo off
for %%i in (test) do (
    echo before-if: %%i
    if 1==1 (
        echo true
    ) else (
        echo false
    )
    echo after-if
)
:end

I get the following wrong output:
  before-if: test
  true

The output should be:
  before-if: test
  true
  after-if

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