http://bugs.winehq.org/show_bug.cgi?id=21505
Summary: cmd returns %ProgramFiles% with newline character Product: Wine Version: 1.1.36 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: trivial Priority: P2 Component: cmd AssignedTo: wine-bugs@winehq.org ReportedBy: lukasz.wojnilowicz@gmail.com
The problem is that Wine 1.1.36 returns ProgramFiles variable with newline character at the end. This is an regression because in Wine 1.1.35 ProgramFiles variable hadn't been returned with newline character at the end. I used script below to test it.
#!/bin/bash PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"` echo "PreviousText_ $PROGRAMFILES _NextText" >& output.txt
1) In Wine 1.1.35 output.txt looks like
PreviousText_ C:/Program Files _NextText
2) In Wine 1.1.36 output.txt looks like
PreviousText_ C:/Program Files _NextText
I tested this behaviour also in MS Windows XP SP3 and It's like in Wine 1.1.35