bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rm -xdev


From: Jeremy Shaw
Subject: rm -xdev
Date: Wed, 25 Aug 2004 15:58:12 -0700
User-agent: Wanderlust/2.11.30 (Wonderwall) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/21.3 (i386-pc-linux-gnu) MULE/5.0 (SAKAKI)

Hello,

After a couple of bugs properly aligned themselves and wiped out a
machine, it occured to be that it would be nice if rm had a -xdev flag
(aka, Don't descend directories on other filesystems).

The short version:

/ got mounted in temp directory, and rm -rf $(THE_TEMP_DIR) indirectly turned
into 'rm -rf /'.

I am not sure exactly what would happen if another file system was
found during the delete, but I am sure, I would not want it
deleted. :p

Just a thought..

Jeremy Shaw.
--

This message contains information which may be confidential and privileged. 
Unless you are the 
addressee (or authorized to receive for the addressee), you may not use, copy 
or disclose to anyone 
the message or any information contained in the message. If you have received 
the message in error, 
please advise the sender and delete the message.  Thank you.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]