This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: EXTERNAL: Virus that deletes everything under c:/cygwin?


On 30 March 2011 09:27, Thorsten Kampe wrote:
> * Christopher Faylor (Tue, 29 Mar 2011 11:35:33 -0400)
>> On Tue, Mar 29, 2011 at 05:33:05PM +0200, Thorsten Kampe wrote:
>> >As far as I know "-f" is already the default...
>>
>> If you're saying that "-f" is always active when you type "rm" then, no
>> that is not true.
>
> I'm saying that "ignore nonexistent files, never prompt" is the default
> behaviour if you're running plain unaliased /usr/bin/rm.exe.

It isn't.

$ rm foo; echo $?
rm: cannot remove `foo': No such file or directory
1

$ rm -f foo; echo $?
0

Andy

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]