2006/8/17, Daniel <[EMAIL PROTECTED]>:
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
_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils