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@winehq.org Reporter: jhasse@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
https://bugs.winehq.org/show_bug.cgi?id=44063
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |cmd Status|UNCONFIRMED |NEW Ever confirmed|0 |1 CC| |dark.shadow4@web.de
--- Comment #1 from Fabian Maurer dark.shadow4@web.de --- Confirming.
https://bugs.winehq.org/show_bug.cgi?id=44063
Vijay Kamuju infyquest@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED CC| |infyquest@gmail.com Fixed by SHA1| |6c39db0ca01a93003d2fbf2581f | |c2c3fcb3266c8
--- Comment #2 from Vijay Kamuju infyquest@gmail.com --- This is fixed as part of cmd rewrite - https://source.winehq.org/git/wine.git/commit/6c39db0ca01a93003d2fbf2581fc2c...
https://bugs.winehq.org/show_bug.cgi?id=44063
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 9.12.