https://bugs.winehq.org/show_bug.cgi?id=38289
Bug ID: 38289 Summary: cmd replacement is unable to display a bat file script correctly. Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: njls.yoshi2@gmail.com Distribution: ---
Created attachment 51122 --> https://bugs.winehq.org/attachment.cgi?id=51122 Example batch
The amended Wine cmd.exe (version 6.1.7601 [1.6.2]) is unable to display a batch script to emulate written text to a command line (script attached).
The script runs true in sequence if perused, however, the line where the text should be displayed, yields the characters, "a~0,1", which is a defined argument (expressed in attached script), but not the correct output.
https://bugs.winehq.org/show_bug.cgi?id=38289
Shade njls.yoshi2@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|cmd replacement is unable |Wine cmd is unable to |to display a bat file |display a bat file script |script correctly. |correctly.
https://bugs.winehq.org/show_bug.cgi?id=38289
Shade njls.yoshi2@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |1.6.2
https://bugs.winehq.org/show_bug.cgi?id=38289
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
--- Comment #1 from Austin English austinenglish@gmail.com --- austin@debian-home:~$ wine cmd /c emu_text.bat Z:\home\austin>@echo off Can't recognize '@echo off' as an internal or external command, or batch script.
Z:\home\austin>title Emu Text
Z:\home\austin>setlocal enableextensions enabledelayedexpansion
Z:\home\austin>set lines=1
Z:\home\austin>set "line1=Text that sould be displayed"
Z:\home\austin>for /f %a in ('"prompt $H&for %b in (1) do rem"') do set "BS=%a" Can't recognize '"prompt $H&for %b in (1) do rem"' as an internal or external command, or batch script.
Z:\home\austin>for /L %a in (1,1,1) do set num=0&set "line=!line%a!"&call :type1
Z:\home\austin>:: v Displayed argument v
Z:\home\austin>set "letter=!line:~0,1!"
Z:\home\austin>set "delay=815620684115263070120611675910345"
Z:\home\austin>set "delay=910345"
Z:\home\austin>if not "~0,1"=="" set /p "=a~0,1" <nul a~0,1 Z:\home\austin>for /L %b in (1,20,910345) do rem
Z:\home\austin>if "~0,1"=="" echo.&goto :EOF
Z:\home\austin>goto end
Z:\home\austin>pause >nul austin@debian-home:~$ wine --version wine-1.7.39-144-g4eedf6a
https://bugs.winehq.org/show_bug.cgi?id=38289
--- Comment #2 from Shade njls.yoshi2@gmail.com --- Created attachment 51127 --> https://bugs.winehq.org/attachment.cgi?id=51127 Updated file
https://bugs.winehq.org/show_bug.cgi?id=38289
--- Comment #3 from Shade njls.yoshi2@gmail.com --- Sorry about that, a strange character was added before @echo off. Fixed and uploaded, "Updated file".
Also, "prompt $H&for %b in (1) do rem" is the command that is causing the issue.
https://bugs.winehq.org/show_bug.cgi?id=38289
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
--- Comment #4 from super_man@post.com --- still failing 1.7.53
https://bugs.winehq.org/show_bug.cgi?id=38289
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |crramirez@gmail.com, | |winetest@luukku.com
--- Comment #5 from winetest@luukku.com --- The example file from comment 1 seems to go in never ending loop.
wine 1.9.22-git.
https://bugs.winehq.org/show_bug.cgi?id=38289
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx@gmail.com Attachment #51127|1 |0 is patch| |
https://bugs.winehq.org/show_bug.cgi?id=38289
Axel Gembe derago@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |derago@gmail.com
--- Comment #6 from Axel Gembe derago@gmail.com --- https://bugs.winehq.org/show_bug.cgi?id=47798 looks like it is the same bug but with a simpler reproduction.
I can confirm that this bug still exists in Wine 7.2.
I've hit this bug when diagnosing why the Visual Studio 2019 Build Tools vcvarsall.bat didn't detect the installed Windows SDK. Turns out that in "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\Tools\vsdevcmd\core\winsdk.bat" there is a check for "if "!result:~0,3!"=="10." (" which compares the first 3 character of the Windows SDK version to "10." which always fails because of this issue.
https://bugs.winehq.org/show_bug.cgi?id=38289
--- Comment #7 from Axel Gembe derago@gmail.com --- There is another report of this here: https://forum.winehq.org/viewtopic.php?p=122845#p122845
https://bugs.winehq.org/show_bug.cgi?id=38289
Neko-san nekoNexus@protonmail.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nekoNexus@protonmail.ch
https://bugs.winehq.org/show_bug.cgi?id=38289
--- Comment #8 from Axel Gembe derago@gmail.com --- This is likely fixed by https://source.winehq.org/git/wine.git/commit/6c39db0ca01a93003d2fbf2581fc2c...
https://bugs.winehq.org/show_bug.cgi?id=38289
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de Ever confirmed|0 |1 Status|UNCONFIRMED |NEW
--- Comment #9 from Fabian Maurer dark.shadow4@web.de --- Still present in wine-9.12
Output:
Syntax error: unexpected IN a~0,1a~1,1a~2,1a~3,1a~4,1a~5,1a~6,1a~7,1a~8,1a~9,1a~10,1a~11,1a~12,1a~13,1a~14,1a~15,1a~16,1
https://bugs.winehq.org/show_bug.cgi?id=38289
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |cmd
https://bugs.winehq.org/show_bug.cgi?id=38289
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #51122|0 |1 is obsolete| |