From: Meino Christian Cramer <Meino.Cramer@gmx.de>
To: mpol@charybda.icm.edu.pl
Cc: zsh-users@sunsite.dk
Subject: Re: RFT: Request for a trick :O)
Date: Sat, 06 Aug 2005 10:35:49 +0200 (CEST) [thread overview]
Message-ID: <20050806.103549.104026645.Meino.Cramer@gmx.de> (raw)
In-Reply-To: <20050806075040.GA7698@Amber.lab.icm.edu.pl>
From: Michal Politowski <mpol@charybda.icm.edu.pl>
Subject: Re: RFT: Request for a trick :O)
Date: Sat, 6 Aug 2005 09:50:40 +0200
> On Sat, 6 Aug 2005 06:56:38 +0200, Meino Christian Cramer wrote:
> [...]
> > cmp < `7z x -so foo.7z` < `7z x -so bar.7z`
> >
> > may work I thought...but it doesnt (the assumption was totally
> > wrong)... ( "7z x -so <file>.7z" means "unpack <file>.7z to stdout)
> >
> > But...may be someone else knows a tricky way to prevent temporary
> > files to compare the (single file) contents of two archives in one
> > go???
>
> Almost there. Read about process substitution in the documentation.
> It looks like <(command), >(command) and =(command)
> so in your case
> cmp <(7z x -so foo.7z) <(7z x -so bar.7z)
> should work.
>
> --
> Michał Politowski
> Talking has been known to lead to communication if practiced carelessly.
>
Hi Michael !
Thanks for your reply :O)
The following line:
cmp <(7z x -so render/GlassBowl001.blend.7z ) <(7z x -so render2/GlassBowl001.blend.7z )
gaves:
7-Zip 4.20 Copyright (c) 1999-2005 Igor Pavlov 2005-05-30
p7zip Version 4.20 (locale=C,Utf16=off,HugeFiles=on)
Processing archive: render/GlassBowl001.blend.7z
7-Zip 4.20 Copyright (c) 1999-2005 Igor Pavlov 2005-05-30
p7zip Version 4.20 (locale=C,Utf16=off,HugeFiles=on)
Processing archive: render2/GlassBowl001.blend.7z
cmp (GNU diffutils) 2.8.1
Copyright (C) 2002 Free Software Foundation, Inc.
This program comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of this program
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
Written by Torbjorn Granlund and David MacKenzie.
mccramer@solfire:.process>
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 "$@"
Both files exists, the command was submitted being in the correct cwd
and the files are processable by 7z (no corruption etc...)...
What's going wrong here ?
Keep zshing!
Meino
next prev parent reply other threads:[~2005-08-06 8:34 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 [this message]
2005-08-08 10:04 ` Peter Stephenson
2005-08-08 10:35 ` Stephane Chazelas
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=20050806.103549.104026645.Meino.Cramer@gmx.de \
--to=meino.cramer@gmx.de \
--cc=mpol@charybda.icm.edu.pl \
--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).