https://bugs.winehq.org/show_bug.cgi?id=53436
Bug ID: 53436 Summary: Can't recognize ')' as an internal or external command, or batch script. Product: Wine Version: 7.13 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: cmd Assignee: wine-bugs@winehq.org Reporter: joel@airwebreathe.org.uk Distribution: ---
Wine when running the following command file:
------------ if "x"=="x" echo A & (if exist z (echo B) else (echo C))& echo D ------------
On Windows the output is:
------------ c:\workspace>test.cmd
c:\workspace>if "x" == "x" echo A & (if exist z (echo B ) else (echo C ) ) & echo D A C D
------------
On Wine 7.13, the output is:
------------ $ wine64 test.cmd 007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
Z:\home\user\workspace>if "x"=="x" echo A & (if exist z (echo B) else (echo C))& echo D A C Can't recognise ')' as an internal or external command, or batch script. D ------------
Similar syntax is used in Msys2's msys2_shell.cmd file causing it to get stuck in an infinite loop.
https://bugs.winehq.org/show_bug.cgi?id=53436
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, testcase
https://bugs.winehq.org/show_bug.cgi?id=53436
Bernhard Übelacker bernhardu@mailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bernhardu@mailbox.org
--- Comment #1 from Bernhard Übelacker bernhardu@mailbox.org --- This might be a duplicate of bug 53190. If I remember correctly the last "& echo D" was not important to reproduce, and for simplifiction the example uses a comparison instead of an exist. At least was intended for the same hang in msys2_shell.cmd.
https://bugs.winehq.org/show_bug.cgi?id=53436
Joel Holdsworth joel@airwebreathe.org.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|UNCONFIRMED |RESOLVED
--- Comment #2 from Joel Holdsworth joel@airwebreathe.org.uk --- Looks exactly the same - I didn't realise you already found that one! Closing
*** This bug has been marked as a duplicate of bug 53190 ***
https://bugs.winehq.org/show_bug.cgi?id=53436
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Closing Duplicate.