Date: Tue, 8 Jul 1997 14:55:52 +0300 (EET DST) From: Esa A E Peuha Reply-To: Esa DOT Peuha AT Helsinki DOT FI To: Eli Zaretskii cc: djgpp AT delorie DOT com Subject: Re: interesting redir behavior In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Tue, 8 Jul 1997, Eli Zaretskii wrote: > The `dup' calls force the new handle to refer to the same file/device as > the other handle, but they create a new handle, they cannot be used to > force the new handle be 1 (or any other specific number). The numbering > of handles is done by the OS. True for dup, but most certainly not true for dup2 (as its documentation says). redir should be rewritten to always use dup2 instead of dup. Esa Peuha student of mathematics at the University of Helsinki http://www.helsinki.fi/~peuha/