This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: How to capture stderr of dos process running in bash shell??
Christopher Faylor wrote:
> But that is clearly not the case here since stdout and stderr are being
> bypassed and text is still showing up on the screen. That is not a symptom
> of stdout/stderr being attached to a pipe.
>
> Although, hmm, on rereading it isn't clear that the output shows up on
> the screen. It sounds like the DOS program just might not differentiate
> between stdout and stderr.
I checked: you can't redirect its error output at all, even in a genuine
cmd.exe shell with cygwin having nothing to do with it. It must indeed be
using the console directly. <checks imports> Curiouser and curiouser... it
links msvcrt.dll and imports printf and wprintf, but then it goes and actually
does everything the hard way with lowlevel console i/o in unicode. How peculiar.
cheers,
DaveK
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple