[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [debian-mentors] config.sub and config.guess | .diff.gz bloat



On Mon, Nov 10, 2003 at 01:27:27PM +0000, Magos?nyi ?rp?d wrote:
> A levelezõm azt hiszi, hogy Geert Stappers a következõeket írta:
> > On Mon, Nov 10, 2003 at 11:50:09AM +0000, Magos?nyi ?rp?d wrote:
> > > A levelez?m azt hiszi, hogy Andreas Metzler a következ?eket írta:
| | | -       find . -name config.{log,status,cache} |xargs rm -f
| | | +       find . \( -name config.log -o -name config.status -o -name config.cache \) -print0 |xargs -0r rm -f
> 
> [quoting]
> or [1]
> find ... -print0 | xargs -0r rm -f
>              cu andreas
> 
> [1] This is a lot faster, but won't work with every find. It is safe
> to use on Debian though because we use GNU findutils.
> 
> >  [still dangerous  "|xargs rm -f" code]
| | 
| | Use
| | 
| |    rm -f config.status and other files
| | 
> 
> Now what? I thought using "|xargs -0r rm -f" is safe.

There is still the risk that find finds more then you expect.

A simple

      rm -f config.log config.status config.cache

will only remove what has been told to remove.


If you like find and surprises, you are free to ignore this advice.



Geert Stappers

Attachment: pgpWDAAOJh7U6.pgp
Description: PGP signature


Reply to: