CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2012/01/02 16:19:45
Modified files:
usr.bin/find : extern.h find.1 find.c find.h function.c
Log message:
Add support for "find ... -exec foo {} \+".
>From the manpage:
If terminated by a plus sign (``+''), the pathnames for which the
primary is evaluated are aggregated into sets, and utility will
be invoked once per set, similar to xargs(1). If any invocation
exits with non-zero exit status, then find will eventually do so
as well, but this does not cause find to exit early. The string
``{}'' must appear, and must appear last. Each set is limited to
no more than 5,000 pathnames, and is also limited such that the
invocation of utility does not exceed ARG_MAX.
Code comes from NetBSD, written by John Hawkinson. Tested by eivinde at
terraplane dot org and myself for quite some time.
ok miod@