From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11328 invoked from network); 9 Sep 2001 18:32:04 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 9 Sep 2001 18:32:04 -0000 Received: (qmail 4443 invoked by alias); 9 Sep 2001 18:31:58 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15767 Received: (qmail 4426 invoked from network); 9 Sep 2001 18:31:56 -0000 From: Bart Schaefer Message-Id: <1010909183141.ZM21909@candle.brasslantern.com> Date: Sun, 9 Sep 2001 18:31:41 +0000 In-Reply-To: <20010908170712.A31748@dman.com> Comments: In reply to Clint Adams "PATCH: ztcp" (Sep 8, 5:07pm) References: <20010908170712.A31748@dman.com> X-Mailer: Z-Mail (5.0.0 30July97) To: Clint Adams , zsh-workers@sunsite.dk Subject: Re: PATCH: ztcp MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 8, 5:07pm, Clint Adams wrote: } } % ztcp hostname port } hostname:port is now on fd 5 Rather than print this to stdout, you'd be better off stuffing it into te value of the $REPLY parameter, or allowing the caller to pass a parameter name into which the fd number would be stuffed. Even better, allow the caller to pass in an fd number to which the new connection will be dup2'd. -- 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