Mail Archives: djgpp/1997/07/08/09:56:51
Eli Zaretskii wrote:
> > Are you saying that DJGPP's implementation of dup2 is
> > broken?
>
> No, I just forgot about it. Thanks.
>
> (`dup2' cannot be broken, since it really calls DOS right away.)
That's rather what I hoped, I couldn't see any reason why it wouldn't
(but with all the protected mode stuff there could be one). So why
(apart from historical reasons) doesn't REDIR use dup2? I suspect
that the OPENDOS COMMAND.COM uses dup2 (or rather the MSDOS call
directly, probably) which is why it (and 4DOS) work with OPENDOS
and REDIR doesn't...
Can someone with OPENDOS try it and report back, please?
And do other redirecting functions like popen() (and system()?) work
on OPENDOS? The faster these things are tested the faster they'll get
fixed...
(Sorry, until OPENDOS is a lot more stable than it's reported at present
I'm not trusting it on my system, otherwise I'd test it myself...)
Chris C
- Raw text -