https://bugs.winehq.org/show_bug.cgi?id=51599
Bug ID: 51599 Summary: cmd.exe incorrectly parses an all-whitespace line followed by a closing parenthesis Product: Wine Version: 6.14 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: programs Assignee: wine-bugs@winehq.org Reporter: alexhenrie24@gmail.com Distribution: ---
Created attachment 70449 --> https://bugs.winehq.org/attachment.cgi?id=70449 Example batch file
The attached batch file works on Windows, but Wine says:
Can't recognize ')' as an internal or external command, or batch script.
Wine's cmd.exe doesn't have a problem with entirely blank lines, but something about having spaces on the line is tripping it up.
https://bugs.winehq.org/show_bug.cgi?id=51599
Bernhard Übelacker bernhardu@mailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bernhardu@mailbox.org
--- Comment #1 from Bernhard Übelacker bernhardu@mailbox.org --- Submitted patch: https://gitlab.winehq.org/wine/wine/-/merge_requests/277
Got here while investigating bug #53155, where this batch file contains this situation: https://github.com/msys2/MSYS2-packages/blob/fb3dffb7c4583f9b172fb67ba6df585...
https://bugs.winehq.org/show_bug.cgi?id=51599
Joel Holdsworth joel@airwebreathe.org.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |joel@airwebreathe.org.uk
https://bugs.winehq.org/show_bug.cgi?id=51599
Neko-san nekoNexus@protonmail.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nekoNexus@protonmail.ch
https://bugs.winehq.org/show_bug.cgi?id=51599
Bernhard Übelacker bernhardu@mailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|programs |cmd
--- Comment #2 from Bernhard Übelacker bernhardu@mailbox.org --- Another program affected by this seems to be ghidra with its startup scripts. But there it leads to an endless loop.
https://github.com/NationalSecurityAgency/ghidra/blob/33f90ba1c168cf4fa2b763...
Changing component to cmd.
https://bugs.winehq.org/show_bug.cgi?id=51599
Vijay Kamuju infyquest@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED Fixed by SHA1| |d7edf3e651a2601d6086f49d3b2 | |907e2321b8607 CC| |infyquest@gmail.com
--- Comment #3 from Vijay Kamuju infyquest@gmail.com --- Fix merged - d7edf3e651a2601d6086f49d3b2907e2321b8607
https://bugs.winehq.org/show_bug.cgi?id=51599
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.3.