From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14299 invoked from network); 9 Sep 2001 23:31:01 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 9 Sep 2001 23:31:01 -0000 Received: (qmail 10779 invoked by alias); 9 Sep 2001 23:30:52 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15769 Received: (qmail 10766 invoked from network); 9 Sep 2001 23:30:50 -0000 From: Bart Schaefer Message-Id: <1010909233033.ZM22139@candle.brasslantern.com> Date: Sun, 9 Sep 2001 23:30:33 +0000 In-Reply-To: <20010909180116.A16035@dman.com> Comments: In reply to Clint Adams "Re: PATCH: ztcp" (Sep 9, 6:01pm) References: <20010908170712.A31748@dman.com> <1010909183141.ZM21909@candle.brasslantern.com> <20010909180116.A16035@dman.com> X-Mailer: Z-Mail (5.0.0 30July97) To: Clint Adams Subject: Re: PATCH: ztcp Cc: zsh-workers@sunsite.dk MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 9, 6:01pm, Clint Adams wrote: } } I don't understand what fd duplication buys you. It lets you choose a specific fd to which to assign the descriptor, rather than having to take whatever you get. In POSIX emulation mode, fds > 9 can't [*] be redirected to/from, so it's important to be able to specify a known-free number. [*] Actually, it does work, but it's a bug in zsh's POSIX emulation and shouldn't be relied upon. Incidentally, I did mention your objection to /dev/tcp/portname on the shell mailing list, but the response was that several unix variants have already implemented /dev/tcp/* as special files, so the shell would only be emulating that interface on platforms that don't support it, much as zsh already does with /dev/fd/. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net