1 |
On Fri, May 19, 2006 at 06:50:34PM +0200, Marius Mauch wrote: |
2 |
> On Fri, 19 May 2006 15:13:15 +0100 |
3 |
> "Chris Bainbridge" <chris.bainbridge@×××××.com> wrote: |
4 |
> |
5 |
> > find /usr/portage -path '/usr/portage/metadata' -prune -o -path |
6 |
> > '/usr/portage/distfiles' -prune -o -path '/usr/portage/packages' |
7 |
> > -prune -o -type f -exec cat {} > /tmp/blah \; |
8 |
> > time gpg --detach-sign -a /tmp/blah |
9 |
> > |
10 |
> > I get 1.5 seconds on a desktop and 6.5 seconds on a laptop. |
11 |
> |
12 |
> Because you're only checking the last file returned by find ;) |
13 |
|
14 |
'> /tmp/blah' is a shell construct, and while it is (hopefully |
15 |
unintentionally) strangely written, it is applied to find, not to cat, |
16 |
even though it's between {} and \;. So all files are added together, |
17 |
and then gpg is run on the result. |
18 |
-- |
19 |
gentoo-dev@g.o mailing list |