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.
http://bugs.winehq.org/show_bug.cgi?id=25390
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|programs |-unknown Severity|major |enhancement
--- Comment #1 from Dmitry Timoshkov dmitry@codeweavers.com 2010-12-02 03:07:00 CST --- http://bugs.winehq.org/page.cgi?id=fields.html#bug_severity
What Windows application does depend on this? Why do you think that's how wineconsole should behave?
http://bugs.winehq.org/show_bug.cgi?id=25390
--- Comment #2 from Cheese Russian cblp@cblp.su 2010-12-02 03:28:30 CST --- (In reply to comment #1)
Oh, I'm sorry for incorrect fields filling.
What Windows application does depend on this? Why do you think that's how wineconsole should behave?
I'm trying to automate some processes, using console windows programs (e.g. gcc.exe to build a windows application), and I can't find out were they finished successfully or not.
http://bugs.winehq.org/show_bug.cgi?id=25390
--- Comment #3 from Cheese Russian cblp@cblp.su 2010-12-02 03:44:01 CST --- I just found that I can use wine instead of wineconsole. wine does return its subprocess' exit code.
But it will be good to implement such feature in wineconsole too.
http://bugs.winehq.org/show_bug.cgi?id=25390
--- Comment #4 from butraxz@gmail.com 2013-06-27 12:14:25 CDT --- This ticket has not been updated for over 900 days.
Is this still an issue in wine version 1.6-rc3 or higher or is this to be closed as abandoned ?
https://bugs.winehq.org/show_bug.cgi?id=25390
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |wylda@volny.cz Resolution|--- |ABANDONED
--- Comment #5 from Wylda wylda@volny.cz --- Abandoned. Feel free to re-open.
https://bugs.winehq.org/show_bug.cgi?id=25390
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Wylda wylda@volny.cz --- Closing - abandoned.
https://bugs.winehq.org/show_bug.cgi?id=25390
Sebastian Unger sebunger44@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sebunger44@gmail.com
--- Comment #7 from Sebastian Unger sebunger44@gmail.com --- So how do I re-open this bug? I have the same issue and I cannot use wine since this needs to run in a head-less environment.
The program I'm trying to run is python (actually pyinstaller to build an exe from a python app under linux).