[PATCH] UPDATE: support for optional -delete and -path in 'find'

Natanael Copa natanael.copa at gmail.com
Thu Apr 12 21:35:13 UTC 2007


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.

OpenBSD 3.8 and GNU find 4.1.20 don't.

Its actually quite handy. It's easier than -exec rm/rmdir and its faster
(don't need to fork for every file)

It's disabled by default.

> --
> vda




More information about the busybox mailing list