https://bugs.winehq.org/show_bug.cgi?id=57570
Bug ID: 57570 Summary: Syntax Error in CMD Batch Parsing Product: Wine-staging Version: 10.0-rc3 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: juan3@yandex.com CC: leslie_alistair@hotmail.com, z.figura12@gmail.com Distribution: ---
Created attachment 77673 --> https://bugs.winehq.org/attachment.cgi?id=77673 running wine cmd
When attempting to run the `msys2_shell.cmd` script from MSYS2, Wine fails with a syntax error: `Syntax error: unexpected IN`. This issue occurs during the batch file parsing phase.
1. Download the MSYS2 base archive from the following link: ```
https://github.com/msys2/msys2-installer/releases/download/2024-12-08/msys2-... ``` 2. Extract the archive to a directory, e.g., `Z:\msys2\msys64`. 3. Navigate to the extracted directory: ``` Z:\msys2\msys64> ``` 4. Run the `msys2_shell.cmd` script with the following arguments: ``` msys2_shell.cmd -here -defterm -no-start ``` 5. Observe the error: ``` Syntaxfehler Syntax error: unexpected IN ```
The `msys2_shell.cmd` script should execute without errors and launch the MSYS2 shell environment.
Wine fails with a syntax error: `Syntax error: unexpected IN`.