From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26780 invoked from network); 10 Sep 2001 11:09:42 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 10 Sep 2001 11:09:42 -0000 Received: (qmail 10157 invoked by alias); 10 Sep 2001 11:09:29 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15778 Received: (qmail 10145 invoked from network); 10 Sep 2001 11:09:28 -0000 Message-ID: <20010910110926.21520.qmail@web9305.mail.yahoo.com> Date: Mon, 10 Sep 2001 12:09:26 +0100 (BST) From: =?iso-8859-1?q?Oliver=20Kiddle?= Subject: Re: PATCH: ztcp To: zsh-workers@sunsite.dk In-Reply-To: <20010909200649.A17535@dman.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit --- Clint Adams wrote: > > > I had imagined that you could do something like 'exec 9<&$REPLY' > if you wanted to pick the fd. Unfortunately this doesn't > update the session table. I think it is better as Bart suggested with the option to specify a choice of fd because for everything else, you need to manage fd numbers yourself. What might be quite useful though is some sort of special variable which would generate an unused fd number so you can do something like: ztcp -u ${fd:=$NEWFD} host:port and then use $fd thereafter for the file descriptor. > > Incidentally, I did mention your objection to /dev/tcp/portname on > the > > shell mailing list, but the response was that several unix variants > > Hmm. Is there a spec yet, or is bash just the reference implementation? I doubt there will be any spec for quite some time. I also doubt that bash or any other particular shell will be declared the reference implementation though any new feature will need at least one implementation. Oliver ____________________________________________________________ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie