Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: RFT: Request for a trick :O)
- X-seq: zsh-users 9268
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: RFT: Request for a trick :O)
- Date: Mon, 08 Aug 2005 11:41:29 +0100
- In-reply-to: <20050808103515.GB28454@xxxxxxxxxxxxx>
- 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> <20050808103515.GB28454@xxxxxxxxxxxxx>
Stephane Chazelas wrote:
> > > 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 "$@"
> >
>
> 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
You're right. I'd assumed the files were actually identical, but reading
back I see Meino did say they weren't. The "broken pipe" is simply a
detail of the implementation of the <( ... ).
Meino, if you want a full comparison to the end of the file, you can
use "cmp -l", which will give lots of output. Otherwise, you can redirect
2>/dev/null in the p7zip command.
pws
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author