delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/04/26/11:02:53

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Eric Blake <ebb9 AT byu DOT net>
Subject: Re: "rm -rf ./foo/" safe to use?
Date: Wed, 26 Apr 2006 15:02:03 +0000 (UTC)
Lines: 27
Message-ID: <loom.20060426T165403-567@post.gmane.org>
References: <200604261436 DOT k3QEa3AB022090 AT tigris DOT pounder DOT sol DOT net>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

Tom Rodman <cygwin <at> trodman.com> writes:

> 
> I think I had read something years back about cygwin's inode
> simulation (sorry to munge up the terminology), being imperfect;
> so that may have convinced me to not use "rm -rf DIRXXX".

And how would imperfect inode simulation mess up rm?  Seriously -
I would like to know what gave you the impression that inode
behavior could interfere with rm.

> 
> So is "rm -rf ./foo/" safe to use?  Is there any danger that
> anything other than ./foo/ will be deleted?

I use recursive rm all the time, both on FAT drives (where cygwin
must do inode simulation) and on NTFS drives (where cygwin uses
NTFS inodes).  The only danger in deleting more than you
intended is if you type the command wrong, but that same danger
holds true for 'cmd /c rmdir'.  IMO, if you are going to use
cygwin, then use cygwin's rm (but maybe I'm biased, since I happen
to be the rm maintainer).

-- 
Eric Blake
volunteer cygwin coreutils maintainer



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

- Raw text -


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