From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26471 invoked from network); 15 Dec 2004 22:52:49 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 15 Dec 2004 22:52:49 -0000 Received: (qmail 94692 invoked from network); 15 Dec 2004 22:52:42 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 15 Dec 2004 22:52:42 -0000 Received: (qmail 12145 invoked by alias); 15 Dec 2004 22:51:52 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8301 Received: (qmail 12131 invoked from network); 15 Dec 2004 22:51:51 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 15 Dec 2004 22:51:51 -0000 Received: (qmail 93304 invoked from network); 15 Dec 2004 22:51:51 -0000 Received: from mailns.chase.com (HELO sd6.jpmchase.com) (170.148.93.205) by a.mx.sunsite.dk with SMTP; 15 Dec 2004 22:51:50 -0000 Received: from mmx1.jpmchase.com (mmx1 [10.21.212.133]) by sd6.jpmchase.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id iBFMplfc020353; Wed, 15 Dec 2004 17:51:48 -0500 Received: from bretton.ny.jpmorgan.com (bretton.ny.jpmorgan.com [10.21.19.32]) by mmx1.jpmchase.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id iBFMpk9r002738; Wed, 15 Dec 2004 17:51:46 -0500 Received: from aheading by bretton.ny.jpmorgan.com with local (Exim 4.41) id 1Cehzm-0007Jx-Vf; Wed, 15 Dec 2004 17:51:47 -0500 Date: Wed, 15 Dec 2004 17:51:46 -0500 From: Anthony Heading To: Peter Stephenson Cc: zsh-users@sunsite.dk Subject: Re: exec | wc isn't very useful... Message-ID: <20041215225146.GA27274@bretton.ny.jpmorgan.com> References: <20041215185920.GA24992@bretton.ny.jpmorgan.com> <200412151918.iBFJI1F5008660@news01.csr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200412151918.iBFJI1F5008660@news01.csr.com> User-Agent: Mutt/1.5.4i X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 On Wed, Dec 15, 2004 at 07:18:00PM +0000, Peter Stephenson wrote: > > exec | wc > > The syntax doesn't make sense. You're piping the output of "exec" on > its own, which doesn't do anything, to "wc". Yes... doesn't that just mean that it's free to be assigned any meaning that an implementer might care to give it? > Try this: > exec > >(wc) > Something like this got broken at one point (by me) but is working in > the latest version of the shell. Ah. Perfect. I'm sure tried that before and it didn't work - perhaps I hit the period when it was broken... > A pipeline is fundamentally different from a redirection. I don't quite see that - aside from the very real underlying implementation issues, what is wrong with a conceptual model that views: a | b | c as pure syntactic sugar for: a > >(b > >(c)) ? Would it not be appealing to _define_ exec | wc to mean: exec > >(wc) given that it doesn't currently mean anything at all? Regardless, appreciate your help with identifying a working syntax... Rgds Anthony This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates