delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/04/26/10:36:28

X-Spam-Check-By: sourceware.org
Message-Id: <200604261436.k3QEa3AB022090@tigris.pounder.sol.net>
To: cygwin AT cygwin DOT com
From: cygwin AT trodman DOT com (Tom Rodman)
Reply-to: cygwin AT cygwin DOT com
Subject: "rm -rf ./foo/" safe to use?
Date: Wed, 26 Apr 2006 09:36:02 -0500
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

Rightly or wrongly over the years I've refrained from using
cygwin to delete large directories; instead, from bash I'll cd
to the parent dir, and run:

  cmd /c rmdir /s /q MYDIR2DELETE

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".

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

Thanks for any help, I'm mainly just curious.  :->

--
Tom Rodman

--
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