[Top][All Lists]
[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
- rm -f, Patrick Welche, 2007/12/14
- Re: rm -f, Eric Blake, 2007/12/16
- Re: rm -f, Patrick Welche, 2007/12/16
- Re: rm -f,
Ralf Wildenhues <=
- Re: rm -f, Patrick Welche, 2007/12/19
- Re: rm -f, Patrick Welche, 2007/12/20
- Re: rm -f, Patrick Welche, 2007/12/21
- Re: rm -f, Ralf Wildenhues, 2007/12/21
- Re: rm -f, Patrick Welche, 2007/12/21
- Re: rm -f, Ralf Wildenhues, 2007/12/22