Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: RFT: Request for a trick :O)
- X-seq: zsh-users 9267
- From: Stephane Chazelas <Stephane@xxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: RFT: Request for a trick :O)
- Date: Mon, 8 Aug 2005 11:35:15 +0100
- In-reply-to: <200508081004.j78A4Es4006122@xxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20050806.065638.92586082.Meino.Cramer@xxxxxx> <20050806075040.GA7698@xxxxxxxxxxxxxxxxxxxx> <20050806.103549.104026645.Meino.Cramer@xxxxxx> <200508081004.j78A4Es4006122@xxxxxxxxxxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author