https://bugs.winehq.org/show_bug.cgi?id=45729
Bug ID: 45729 Summary: cmd's REM evaluates | Product: Wine Version: 3.0.2 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: cmd Assignee: wine-bugs@winehq.org Reporter: paleozogt@gmail.com Distribution: ---
Created attachment 62164 --> https://bugs.winehq.org/attachment.cgi?id=62164 test.bat
cmd's REM seems to evaluate "|", which can cause problems.
For example, put this in "test.bat" in an empty directory:
@echo off for /f %%i IN ('dir "%CD%" /b /on') DO ( @REM foo|bar @echo %%i )
When run on Windows 10:
test.bat
test.bat
When run with Wine's cmd:
test.bat
Can't recognize 'bar' as an internal or external command, or batch script. test.bat
https://bugs.winehq.org/show_bug.cgi?id=45729
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 CC| |dark.shadow4@web.de Status|UNCONFIRMED |NEW
--- Comment #1 from Fabian Maurer dark.shadow4@web.de --- Confirming. Only seems to happen in for loop and with @.
https://bugs.winehq.org/show_bug.cgi?id=45729
--- Comment #2 from Aaron Simmons paleozogt@gmail.com --- Agreed. It can be worked around by either remove the leading @, as in
REM foo|bar
Or the expression can be surrounded in quotes, as in
@REM "foo|bar"
https://bugs.winehq.org/show_bug.cgi?id=45729
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |us@edmeades.me.uk
--- Comment #3 from Jason Edmeades us@edmeades.me.uk --- Nice bugs, thanks for raising... I have a fix but the trigger here is the @ inside a '(' type section is only checked on the first character of the line, not the first non-whitespace character
https://bugs.winehq.org/show_bug.cgi?id=45729
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|wine-bugs@winehq.org |us@edmeades.me.uk
https://bugs.winehq.org/show_bug.cgi?id=45729
--- Comment #4 from Jason Edmeades us@edmeades.me.uk --- https://www.winehq.org/pipermail/wine-devel/2018-September/131878.html
https://bugs.winehq.org/show_bug.cgi?id=45729
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED Fixed by SHA1| |f87e25a7bc2a8917091a9d9d931 | |39bb77eb1e154
--- Comment #5 from Jason Edmeades us@edmeades.me.uk --- Committed
https://bugs.winehq.org/show_bug.cgi?id=45729
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 3.16.
https://bugs.winehq.org/show_bug.cgi?id=45729
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |3.0.x
https://bugs.winehq.org/show_bug.cgi?id=45729
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|3.0.x |---
--- Comment #7 from Michael Stefaniuc mstefani@winehq.org --- Removing the 3.0.x milestone from bug fixes included in 3.0.4.