https://bugs.winehq.org/show_bug.cgi?id=55124
Bug ID: 55124 Summary: Can't run Flutter SDK (cmd.exe doesn't support redirecting stderr for a block) Product: Wine Version: 8.10 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: cmd Assignee: wine-bugs@winehq.org Reporter: alexhenrie24@gmail.com Distribution: ---
`wine flutter.bat` goes into an infinite loop that prints this message over and over:
Can't recognize '2 (' as an internal or external command, or batch script.
It's coming from these lines in internal/shared.bat:
2>NUL ( REM "3" is now stderr because of "2>NUL". CALL :subroutine %* 2>&3 9> "%cache_dir%\flutter.bat.lock" || GOTO acquire_lock )
Wine's cmd.exe does support redirecting stdout for a block of code, for example:
NUL (
COPY flutter.bat flutter2.bat )
But it does not support redirecting stderr in the same way.