https://bugs.winehq.org/show_bug.cgi?id=49811
Bug ID: 49811 Summary: cmd /c "cd "directory"&&"somecommand.exe"" tries to cd to "directory"&&"somecommand.exe" Product: Wine Version: 5.16 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: cmd Assignee: wine-bugs@winehq.org Reporter: lolisamurai@tfwno.gf Distribution: ---
Created attachment 68139 --> https://bugs.winehq.org/attachment.cgi?id=68139 trace with WINEDEBUG=+cmd
I ran into a scene installer that calls cmd /c with very convoluted quoting. I narrowed the bug down to this example (run from C:):
cmd /c "cd "windows"&&"system32\notepad.exe""
when you run this on windows 10 cmd, it cd's to windows and opens notepad as expected
on wine, it interprets "windows"&&"system32\notepad.exe" as the directory to cd to. I have attached a trace with WINEDEBUG=+cmd