http://bugs.winehq.org/show_bug.cgi?id=9530
Summary: cmd's for command can't handle /f option Product: Wine Version: CVS/GIT Platform: Other OS/Version: other Status: NEW Severity: enhancement Priority: P2 Component: wine-programs AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com
I ran into the follow cmd construct today in a real world script:
for /f %%X in ('foo.exe') do set %%X
The /f ... ('command') option is described here http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-... and it means "run the command in single quotes, then loop over each word of the output".
(The real script was trying to set environment variables whose name and value were from stdout of foo.exe.)