Subject: Re: Meta package for pkgsrc developer tools
To: NetBSD Packages Technical Discussion List <tech-pkg@NetBSD.org>
From: Greg A. Woods <woods@weird.com>
List: tech-pkg
Date: 08/12/2006 15:57:02
--pgp-sign-Multipart_Sat_Aug_12_15:57:00_2006-1
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

At Fri, 11 Aug 2006 18:26:55 +0100,
David Laight wrote:
> 
> On Mon, Aug 07, 2006 at 07:42:21PM -0400, Greg A. Woods wrote:
> 
> ...pruned...

:-)

> > 19:20 [59] $ time sh -c 'echo */*/work > /dev/null'
> >     0.04s real     0.01s user     0.02s system
> > 19:21 [61] $ time find . -name work -print > /dev/null
> >    37.76s real     0.37s user     2.17s system
> > 19:23 [63] $ time find . \( -name CVS -prune \) -o \( -name work -print \) > /dev/null
> >    25.98s real     0.21s user     1.10s system
> 
> The one that you want is:
> 
> $ time find . -name CVS -prune -o -name work -print -prune
> 
> pruning after printing stops the descent into the 'work' directories.

Ah, yes, of course!  Thanks for that most important correction!

(not having anything within my work directories, since the objects in my
pkgsrc tree are actually all symlinks, didn't help me to see that they
would still have been decended into!)

Too bad (for simple name-compare-only "find" expressions anyway) that
directory files don't contain a flag bit which would identify files
which are themselves sub-directories.  Then maybe the "find" example
could have a run time that was a bit closer to the shell glob example.

-- 
						Greg A. Woods

H:+1 416 218-0098 W:+1 416 489-5852 x122 VE3TCP RoboHack <woods@robohack.ca>
Planix, Inc. <woods@planix.com>       Secrets of the Weird <woods@weird.com>

--pgp-sign-Multipart_Sat_Aug_12_15:57:00_2006-1
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: ACxcZ8n5k5WghzHUAlCjPVfZPnMmDuJY

iQA/AwUBRN4yjmJ7XxTCWceFEQJD9wCfeaA+oST3t9sPPC7hSSiRK8isXJQAoKMA
Vcr6+Evz4Cb0+nZbGaWkQgYZ
=fehz
-----END PGP SIGNATURE-----

--pgp-sign-Multipart_Sat_Aug_12_15:57:00_2006-1--