www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/08/07:58:06

Date: Tue, 8 Jul 1997 14:55:52 +0300 (EET DST)
From: Esa A E Peuha <peuha AT cc DOT helsinki DOT fi>
Reply-To: Esa DOT Peuha AT Helsinki DOT FI
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
cc: djgpp AT delorie DOT com
Subject: Re: interesting redir behavior
In-Reply-To: <Pine.SUN.3.91.970708131641.13521B-100000@is>
Message-ID: <Pine.SOL.3.96.970708144937.13352A-100000@kruuna.Helsinki.FI>
MIME-Version: 1.0

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019