delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/03/30/04:46:25

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <imupi5$irp$1@dough.gmane.org>
References: <4D90B414 DOT 4040605 AT lmco DOT com> <468547 DOT 38757 DOT qm AT web52801 DOT mail DOT re2 DOT yahoo DOT com> <ims7q0$9pv$1 AT dough DOT gmane DOT org> <4D91E2A5 DOT 80806 AT gmail DOT com> <imsu3n$qjb$1 AT dough DOT gmane DOT org> <20110329153533 DOT GA17260 AT ednor DOT casa DOT cgf DOT cx> <imupi5$irp$1 AT dough DOT gmane DOT org>
Date: Wed, 30 Mar 2011 09:46:10 +0100
Message-ID: <AANLkTinncvGEjXrDF0jmg_X9e8cAhT76SrrC0_y_sF=U@mail.gmail.com>
Subject: Re: EXTERNAL: Virus that deletes everything under c:/cygwin?
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019