From: Christopher Croughton Message-Id: <97Jul8.154936gmt+0100.16641@internet01.amc.de> Subject: Re: interesting redir behavior To: eliz AT is DOT elta DOT co DOT il (Eli Zaretskii) Date: Tue, 8 Jul 1997 14:53:46 +0100 Cc: crough45 AT amc DOT de, djgpp AT delorie DOT com In-Reply-To: from "Eli Zaretskii" at Jul 8, 97 02:35:11 pm Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk 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