http://bugs.winehq.org/show_bug.cgi?id=25390
Summary: wineconsole doesn't returns exit code of subprocess Product: Wine Version: 1.2 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: programs AssignedTo: wine-bugs@winehq.org ReportedBy: cblp@cblp.su
wineconsole should exit with the code, that was returned by nested command.
Example 1.
$ wineconsole cmd CMD Version 1.2
thereisnosuchcommand
File not found
echo %ERRORLEVEL%
9009
exit
$ echo $? 0
Example 2.
$ wineconsole thereisnosuchcommand wine: cannot find L"C:\windows\system32\thereisnosuchcommand.exe" wineconsole: Starting command "thereisnosuchcommand" failed. The command is invalid. $ echo $? 0
And always 0, regardless of subprocess.