https://bugs.winehq.org/show_bug.cgi?id=46125
--- Comment #7 from Lantizia s.maddox@lantizia.me.uk --- (In reply to Alexandre Julliard from comment #6)
Without the quotes, cmd.exe handles the redirection and pipes the file into the standard input, just like on Windows. The issue is that DOSBox doesn't connect its standard input to the DOS app.
I see this as a potentially a valid argument had I not used quotes at all... but I did (see original post).
Wine is choosing (as it's a 16-bit executable) to swap out 'cmd /c' for DOSBox... but there is only really ONE argument after that (due to it being quoted)... and that is the ENTIRETY of what is quoted.
So it's that entirety that should be written out to the DOSBox config file... which Wine creates. I've even show a Wine trace (see comment #1), showing Wine iterate over the internal components of this argument... which it shouldn't need to do, as it is quoted!
I'm sure on Windows XP (when double quotes are used) it doesn't do stdin to cmd.exe but rather to zip.exe (as it's inside the quotes).