[Bug 44063] New: Parentheses cause cmd.exe failing to recognize '2>&1'

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Nov 24 07:53:52 CST 2017


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

            Bug ID: 44063
           Summary: Parentheses cause cmd.exe failing to recognize '2>&1'
           Product: Wine
           Version: 2.20
          Hardware: x86
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: -unknown
          Assignee: wine-bugs at winehq.org
          Reporter: jhasse at gmail.com
      Distribution: ---

On Windows

    cmd.exe /C "(echo foo) 2>&1"

works (only outputs "foo"), while on wine it results in:

foo
Can't recognize '2' as an internal or external command, or batch script.

and a non-zero exit code. Removing the parenthesis would work:

    wine cmd.exe /C "echo foo 2>&1"

I need them though, since I want to do stuff like this:

    wine cmd.exe /C "(echo foo && echo bar) 2>&1"

Maybe related: https://bugs.winehq.org/show_bug.cgi?id=43337

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