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...
https://bugs.winehq.org/show_bug.cgi?id=53190
Joerg Schiermeier mywine@schiermeier-it.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mywine@schiermeier-it.de
--- Comment #1 from Joerg Schiermeier mywine@schiermeier-it.de --- I'm sorry to tell you:
this bug still exists in wine v7.13 published on Friday, the 15th of July 2022.
https://bugs.winehq.org/show_bug.cgi?id=53190
Joel Holdsworth joel@airwebreathe.org.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |joel@airwebreathe.org.uk
--- Comment #2 from Joel Holdsworth joel@airwebreathe.org.uk --- *** Bug 53436 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=53190
Neko-san nekoNexus@protonmail.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nekoNexus@protonmail.ch
https://bugs.winehq.org/show_bug.cgi?id=53190
Vijay Kamuju infyquest@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |infyquest@gmail.com Fixed by SHA1| |6c39db0ca01a93003d2fbf2581f | |c2c3fcb3266c8 Resolution|--- |FIXED
--- Comment #3 from Vijay Kamuju infyquest@gmail.com --- This is fixed by cmd rewrite - https://source.winehq.org/git/wine.git/commit/6c39db0ca01a93003d2fbf2581fc2c...
https://bugs.winehq.org/show_bug.cgi?id=53190
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 9.12.