zsh-users
 help / color / mirror / code / Atom feed
From: Stephane Chazelas <Stephane@artesyncp.com>
To: zsh-users@sunsite.dk
Subject: Re: RFT: Request for a trick :O)
Date: Mon, 8 Aug 2005 11:35:15 +0100	[thread overview]
Message-ID: <20050808103515.GB28454@artesyncp.com> (raw)
In-Reply-To: <200508081004.j78A4Es4006122@news01.csr.com>

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


  reply	other threads:[~2005-08-08 10:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-06  4:56 Meino Christian Cramer
2005-08-06  7:50 ` Michal Politowski
2005-08-06  8:35   ` Meino Christian Cramer
2005-08-08 10:04     ` Peter Stephenson
2005-08-08 10:35       ` Stephane Chazelas [this message]
2005-08-08 10:41         ` Peter Stephenson
2005-08-08 15:44           ` Meino Christian Cramer
2005-08-08 16:02             ` Peter Stephenson
2005-08-08 16:34               ` Meino Christian Cramer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050808103515.GB28454@artesyncp.com \
    --to=stephane@artesyncp.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).