https://bugs.winehq.org/show_bug.cgi?id=57877
Bug ID: 57877 Summary: CMD: Parsing issue: Mismatch in parentheses provoked by trailing tab Product: Wine Version: 10.2 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: cmd Assignee: wine-bugs@winehq.org Reporter: Dominik-Home@gmx.de Distribution: ---
Wine has issues in parsing if-statements like the following:
if not [%FOO:~-1%] == [True] ( <----- NOTE THE TRAILING TAB HERE echo ENTERED IF-EXPRESSION )
On Windows those kind of expressions execute as expected but on Wine it errors with a note 'Mismatch in parentheses.'. While playing around with this construct I realised that the trailing tab may cause this issue. As soon as I remove it, the code seems to work.
See also the attached reproducers.
For reference this, is the last issue to get the PlanAhead (part of Xilinx ISE) batch scripts to work. They are responsible for configuring the environment and starting the GUI.
https://bugs.winehq.org/show_bug.cgi?id=57877
--- Comment #1 from Dominik-Home@gmx.de --- Created attachment 78098 --> https://bugs.winehq.org/attachment.cgi?id=78098 issue-1.bat
Issue in substring expansion
https://bugs.winehq.org/show_bug.cgi?id=57877
--- Comment #2 from Dominik-Home@gmx.de --- Created attachment 78099 --> https://bugs.winehq.org/attachment.cgi?id=78099 issue-2.bat
Issue with empty variable evaluation.