Date: Tue, 8 Jul 1997 17:03:04 +0300 (IDT) From: Eli Zaretskii To: Christopher Croughton cc: djgpp AT delorie DOT com Subject: Re: interesting redir behavior In-Reply-To: <97Jul8.154936gmt+0100.16641@internet01.amc.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Tue, 8 Jul 1997, Christopher Croughton wrote: > So why (apart from historical reasons) doesn't REDIR use dup2? DJ should answer that. But AFAIK, the way `redir' works is quite common practice; I've seen many programs doing that, and OpenDOS will break all of them. For example, Less is one of them. > And do other redirecting functions like popen() (and system()?) work > on OPENDOS? If memory serves, all of these use `dup2' and/or `freopen'.