bug-coreutils
[Top][All Lists]
Advanced

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

Re: rm -f *.obj exits with error on nonexisting file


From: Daniel
Subject: Re: rm -f *.obj exits with error on nonexisting file
Date: Thu, 17 Aug 2006 09:13:39 +0000
User-agent: KMail/1.9.1

Am Mittwoch, 16. August 2006 19:56 schrieb Sascha Kolb:
> Hi I am wondering,
>
> I have different versions of rm.exe with exits with error  if I use
> wildcards with -f parameter and there is no file existing.
>
> RM:= rm -f
>
> We have many clean targets that make
>
> $(RM)  *.obj
>
> on the first rebuild after fetching the source code it is really anoying
> that we get so many stderros about this topic.
> cannot remove `*.o': Invalid argument
>
> 1. Is this desired behaviour, expeciall with -f switch ?

oh, -f... I' wondering, too. On Linux -f does not report if the file does not 
exists. Is this an special behavior on Win?

> 2. Is there any way to disable this behaviour ?

yeah, -f :)

rm --help says:
-f, --force           ignore nonexistent files, never prompt
                      ^^^^^^^^^^^^^^^^^^^^^^^^


Would you please try to delete a nonexisting file?

# rm -f i_do_not_exist.foo

And then post the output?

Daniel




reply via email to

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