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