https://bugs.winehq.org/show_bug.cgi?id=53190
Bug ID: 53190 Summary: cmd.exe incorrectly parses a line with nested if commands Product: Wine Version: 7.10 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: cmd Assignee: wine-bugs@winehq.org Reporter: bernhardu@mailbox.org Distribution: ---
Created attachment 72628 --> https://bugs.winehq.org/attachment.cgi?id=72628 example_batch_file.cmd
The attached batch file shows on windows the lines A B. But wine gives this output: ---- $ LANG=C wine64 example_batch_file.cmd
C:>if 0 == 0 echo A& (if 0 == 0 (echo B) else (echo C)) A B C Can't recognize ')' as an internal or external command, or batch script. ----
This isse was found during investigation to bug #53155, which leads to an endless loop in this batch file: https://github.com/msys2/MSYS2-packages/blob/fb3dffb7c4583f9b172fb67ba6df585...