On Thursday 12 April 2007 23:35, Natanael Copa wrote:
> On Thu, 2007-04-12 at 22:41 +0200, Denis Vlasenko wrote:
> > On Thursday 12 April 2007 13:40, Natanael Copa wrote:
> > > > >Attached is a patch against current svn for optional support of the
> > > > >-delete and -path option in the 'find' applet.
> > ...
> > > > bb_perror_msg is supposed to use "applet-name: " as prefix, so
> > > > bb_perror_msg("%s", fileName); should do what you want.
> > >
> > > Attached is same patch with bb_perror_msg() instead of perror().
> > >
> > > Should apply to current svn
> > >
> > > Natanael Copa
> >
> > I have nothing against the patch per se, but I never heard of
> > find having -delete option. Which version of find has it?
>
> At least FreeBSD-6.1 find and GNU find version 4.2.28 has it.
Ok then. Applying. Thanks!
> Its actually quite handy. It's easier than -exec rm/rmdir
Yes.
> and its faster (don't need to fork for every file)
Try new NOFORK stuff. It does (or rather "does not" - does not fork+exec)
the same for a dozen applets when find/args invoke them.
Like echo, touch, cat etc...
Activated by CONFIG_FEATURE_PREFER_APPLETS=y.
--
vda
_______________________________________________
busybox mailing list
[EMAIL PROTECTED]
http://busybox.net/cgi-bin/mailman/listinfo/busybox