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: Sascha Kolb
Subject: Re: rm -f *.obj exits with error on nonexisting file
Date: Tue, 22 Aug 2006 10:53:56 +0200

2006/8/17, Daniel <address@hidden>:

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



I always use -f :

That's why I am wondering !



Microsoft Windows XP [Version 5.1.2600]

(C) Copyright 1985-2001 Microsoft Corp.



T:\Temp>rm -f *.o

rm: cannot remove `*.o': Invalid argument



T:\Temp>rm -f *.obj

rm: cannot remove `*.obj': Invalid argument



T:\Temp>rm --version

rm (fileutils) 4.1

Written by Paul Rubin, David MacKenzie, Richard Stallman, and Jim Meyering.



Copyright (C) 2001 Free Software Foundation, Inc.

This is free software; see the source for copying conditions. There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



Tanks for ur support


reply via email to

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