From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18827 invoked from network); 8 Aug 2005 10:35:38 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 8 Aug 2005 10:35:38 -0000 Received: (qmail 85807 invoked from network); 8 Aug 2005 10:35:33 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 8 Aug 2005 10:35:33 -0000 Received: (qmail 5891 invoked by alias); 8 Aug 2005 10:35:25 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9267 Received: (qmail 5882 invoked from network); 8 Aug 2005 10:35:25 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 8 Aug 2005 10:35:25 -0000 Received: (qmail 84699 invoked from network); 8 Aug 2005 10:35:25 -0000 Received: from caly80.spider.com (HELO bifrost.spider.com) (194.217.109.12) by a.mx.sunsite.dk with SMTP; 8 Aug 2005 10:35:21 -0000 Received: from no.name.available by bifrost.spider.com via smtpd (for [130.225.247.86]) with SMTP; 8 Aug 2005 10:35:21 UT Received: from heimdall-dmz.spider.com (mailhub.spider.com [212.240.99.13]) by caly80.spider.com (Postfix) with SMTP id DC50F6F5F for ; Mon, 8 Aug 2005 11:35:16 +0100 (BST) Received: from mailhub.spider.com by heimdall-dmz.spider.com via smtpd (for [172.16.254.22]) with SMTP; 8 Aug 2005 10:35:16 UT Received: from localhost (duey.spider.com [212.240.99.128]) by batistuta.spider.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 3KAPHY9Y; Mon, 8 Aug 2005 11:29:05 +0100 Date: Mon, 8 Aug 2005 11:35:15 +0100 From: Stephane Chazelas To: zsh-users@sunsite.dk Subject: Re: RFT: Request for a trick :O) Message-ID: <20050808103515.GB28454@artesyncp.com> Mail-Followup-To: zsh-users@sunsite.dk References: <20050806.065638.92586082.Meino.Cramer@gmx.de> <20050806075040.GA7698@Amber.lab.icm.edu.pl> <20050806.103549.104026645.Meino.Cramer@gmx.de> <200508081004.j78A4Es4006122@news01.csr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200508081004.j78A4Es4006122@news01.csr.com> User-Agent: Mutt/1.5.7i X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.0.4 On Mon, Aug 08, 2005 at 11:04:14AM +0100, Peter Stephenson wrote: > Meino Christian Cramer wrote: > > The following line: > > > > cmp <(7z x -so render/GlassBowl001.blend.7z ) <(7z x -so render2/Glas= > > sBowl001.blend.7z ) > > > > gaves: > > Extracting GlassBowl001.blend/usr/bin/7z: line 2: 5488 Broken pipe > > /usr/lib/p7zip/7z "$@" > > Extracting GlassBowl001.blend/usr/bin/7z: line 2: 5492 Broken pipe > > /usr/lib/p7zip/7z "$@" > > Not sure this is the error, but: it's quite likely cmp needs to be able > to seek backwards. <(...) is often implemented using a pipe on which you > can't do that. (Results may vary, so you can't assume it will always > work from the behaviour on one system.) [...] I think it's rather because cmp stops reading at the first difference -> so exit -> so close the pipes -> so the feeders get a SIGPIPE. That's normal and expected, you'd get the same with: 7z ... | cmp - other-file -- Stephane