On Fri, May 19, 2006 at 06:50:34PM +0200, Marius Mauch wrote:
> On Fri, 19 May 2006 15:13:15 +0100
> "Chris Bainbridge" <[EMAIL PROTECTED]> wrote:
>
> > find /usr/portage -path '/usr/portage/metadata' -prune -o -path
> > '/usr/portage/distfiles' -prune -o -path '/usr/portage/packages'
> > -prune -o -type f -exec cat {} > /tmp/blah \;
> > time gpg --detach-sign -a /tmp/blah
> >
> > I get 1.5 seconds on a desktop and 6.5 seconds on a laptop.
>
> Because you're only checking the last file returned by find ;)
'> /tmp/blah' is a shell construct, and while it is (hopefully
unintentionally) strangely written, it is applied to find, not to cat,
even though it's between {} and \;. So all files are added together,
and then gpg is run on the result.
--
[email protected] mailing list