clean/distclean speedup

Rob Landley rob at landley.net
Fri Mar 10 12:04:57 PST 2006


On Friday 10 March 2006 5:09 am, walter harms wrote:
> hi all,
>
> perhaps adding a '-type f' ? that would prevent a mistake
> if someone has a directory with that name.
> (since you use rm if would cause error but its better to be on the saver
> side, just believe me).

A) If this ever descends outside of the busybox working drectory something is 
dreadfully wrong anyway.  If something deletes all the files in your home 
directory, but leaves the directory structure intact, it's not really an 
improvement.

B) If somebody, in a busybox working directory, names their a directory "*.o", 
they deserve what they get.

C) We're not feeding it -r.

D) This is not a new problem introduced by this change, the behavior should be 
the same as the previous version.

> re,
>   walter

Rob
-- 
Never bet against the cheap plastic solution.


More information about the busybox mailing list