From: "Mark E." Newsgroups: comp.os.msdos.djgpp Subject: Re: why isn't the FSEXT hook implemented for dup in 2.03? Date: Thu, 24 Feb 2000 23:51:14 -0500 Organization: Snowball's Web Message-ID: References: <890rpg$sf6$1 AT nnrp1 DOT deja DOT com> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 129.37.91.80 X-Trace: 25 Feb 2000 04:50:24 GMT, 129.37.91.80 Lines: 17 X-Complaints-To: abuse AT prserv DOT net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eli Zaretskii wrote: > - When this was discussed, it seemed to be rather unnecessary to > hook dup. Can you explain under what circumstances do you need > this, and why? I can't speak for the poster's reasons, but I know why I want it. I have a pipe emulator that I hope to use with Bash that uses FSEXTs. Bash does use dup and dup2 on that 'pipe' handle for redirections before spawning a child program. Without FSEXTs for dup and dup2, the emulator doesn't work since Bash naturally expects to be able to dup and dup2 it like any other file handle.. -- Mark E.: snowball3 AT bigfoot DOT com http://snowball.frogspace.net/