Re: rm -f

2007-12-15 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Patrick Welche on 12/14/2007 9:19 AM: > There already is a safety check in libtool at > > # Don't error if the file doesn't exist and rm -f was used. > > but then there are all the cases where $RM is used. Invent a shell > function

Re: rm -f

2007-12-15 Thread Patrick Welche
On Fri, Dec 14, 2007 at 12:27:48PM -0700, Eric Blake wrote: > > The general idiom for this is 'rm -f dummy $files', so that even if $files > is empty, you are still passing an argument to rm, and the -f avoids > failure on the dummy argument. Elegant! P