libtool
[Top][All Lists]
Advanced

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

Re: rm -f


From: Ralf Wildenhues
Subject: Re: rm -f
Date: Sun, 16 Dec 2007 10:04:59 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

Hello,

* Patrick Welche wrote on Fri, Dec 14, 2007 at 08:58:51PM CET:
> 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!

Only if you have a dummy file to remove.  In libtool it's easier to just
add
  test -z "$files" || $RM $files

as appropriate.  Which tests are failing for you, Patrick?  I assume
this is NetBSD?

Thanks,
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]