[Bug 53190] New: cmd.exe incorrectly parses a line with nested if commands
WineHQ Bugzilla
wine-bugs at winehq.org
Sun Jun 19 09:08:45 CDT 2022
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 at winehq.org
Reporter: bernhardu at 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/fb3dffb7c4583f9b172fb67ba6df5859d114f758/filesystem/msys2_shell.cmd#L46
--
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