http://bugs.winehq.org/show_bug.cgi?id=11474
Summary: winelauncher mixes up stdout & stderr Product: Wine Version: CVS/GIT Platform: Other OS/Version: other Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: programs AssignedTo: wine-bugs@winehq.org ReportedBy: rmh@aybabtu.com
Created an attachment (id=10617) --> (http://bugs.winehq.org/attachment.cgi?id=10617) simple test case
The following line in winelauncher:
( $WINEBIN/$WINE_BIN_NAME "$@"; echo $? >$status_name ) 2>&1 | tee "$log_name"
mixes up stdout and stderr irreversibly. As a result, commands like:
echo some_file | cpio.exe -o -H newc > out.cpio
which would work on Windows, on wine get stderr messages merged into the output.
I've been thinking for a while in a way to duplicate streams in bash without mixing stdout with stderr, but couldn't find anything.
I think a C wrapper would be needed; perhaps in wine-bin itself. What's your preference?