http://bugs.winehq.org/show_bug.cgi?id=11073
--- Comment #21 from Jason Edmeades us@edmeades.me.uk 2008-01-14 17:31:51 --- Update: Patch solves the problems but causes another. I need to think about this
eg. "a.bat" - echo a, "a b.bat" - echo a and b
cmd.exe: a - only a : a b - only a : "a b" - a and b cmd.exe /c a b - only a cmd.exe /c "a b" - a and b
Its this last case which breaks with my patch. Currently the code used parameter parsing which strips quotes, so the first 'parameter' is the whole quoted string. It then adds quotes around the lot and passes to run program. My patch doesnt add quotes if there is only one arg (one arg == prevsiouly quoted string, or string with no delimeters in it passed to cmd.exe /c). This, whilst working, breaks the last case above.... Use it as a workaround whilst I think about it!