From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7758 invoked from network); 12 Nov 2008 10:53:06 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 12 Nov 2008 10:53:06 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 27024 invoked from network); 12 Nov 2008 10:53:02 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 12 Nov 2008 10:53:02 -0000 Received: (qmail 12609 invoked by alias); 12 Nov 2008 10:52:57 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26029 Received: (qmail 12592 invoked from network); 12 Nov 2008 10:52:57 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 12 Nov 2008 10:52:57 -0000 Received: from cluster-g.mailcontrol.com (cluster-g.mailcontrol.com [208.87.233.190]) by bifrost.dotsrc.org (Postfix) with ESMTPS id 18C3680308BE for ; Wed, 12 Nov 2008 11:52:53 +0100 (CET) Received: from cameurexb01.EUROPE.ROOT.PRI ([193.128.72.68]) by rly22g.srv.mailcontrol.com (MailControl) with ESMTP id mACAqkPp029556 for ; Wed, 12 Nov 2008 10:52:47 GMT Received: from news01 ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.3959); Wed, 12 Nov 2008 10:52:46 +0000 Date: Wed, 12 Nov 2008 10:52:41 +0000 From: Peter Stephenson To: "Zsh Hackers' List" Subject: Re: parse error in process substitution Message-ID: <20081112105241.40c116d9@news01> In-Reply-To: <20081110142850.0add2680@news01> References: <20081106150224.GA10992@apartia.fr> <081106082517.ZM27477@torch.brasslantern.com> <20081110082152.GA9563@apartia.fr> <20081110142850.0add2680@news01> Organization: CSR X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.8; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 12 Nov 2008 10:52:46.0960 (UTC) FILETIME=[CC538F00:01C944B4] X-Scanned-By: MailControl A_08_51_00 (www.mailcontrol.com) on 10.71.0.132 X-Virus-Scanned: ClamAV 0.92.1/8620/Wed Nov 12 10:05:38 2008 on bifrost X-Virus-Status: Clean On Mon, 10 Nov 2008 14:28:50 +0000 Peter Stephenson wrote: > On Mon, 10 Nov 2008 09:21:52 +0100 > Louis-David Mitterrand wrote: > > So how would you convert that working bash command to zsh? > > > > root-tail <(ssh root@my.host.name tail -F /var/log/kern.log),red, >... > It would be good to fix the underlying problem; it will work a little > differently from the way it is now, but that's so confusing if the <(...) > isn't in a separate word that I don't think there's a good reason to keep > it. (Moved to zsh-workers.) I'm working on that elsewhere. Just to make quite sure I don't screw up parsing of ordinary redirections in the process here's an extra test. The fiddly bit is ensuring that normal redirection operators don't require a space before them but are still parsed as a separate word. Index: Test/A04redirect.ztst =================================================================== RCS file: /cvsroot/zsh/zsh/Test/A04redirect.ztst,v retrieving revision 1.13 diff -u -r1.13 A04redirect.ztst --- Test/A04redirect.ztst 14 Mar 2008 11:40:59 -0000 1.13 +++ Test/A04redirect.ztst 12 Nov 2008 10:48:03 -0000 @@ -344,3 +344,21 @@ 0:Optimised here-string to filename >This string has been replaced >by a file containing it. + + print This f$'\x69'le contains d$'\x61'ta. >redirfile + print redirection: + catoutfile + print output: + cat outfile + print append: + cat>>outfileredirection: +>output: +>This file contains data. +>append: +>more output: +>This file contains data. +>This file contains data. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070