From owner-freebsd-questions Thu Jan 30 19: 6:32 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 59DC137B401 for ; Thu, 30 Jan 2003 19:06:30 -0800 (PST) Received: from sccrmhc03.attbi.com (sccrmhc03.attbi.com [204.127.202.63]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8EF8543FA7 for ; Thu, 30 Jan 2003 19:06:29 -0800 (PST) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com[24.147.188.198]) by sccrmhc03.attbi.com (sccrmhc03) with ESMTP id <2003013103062900300jv072e>; Fri, 31 Jan 2003 03:06:29 +0000 Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [24.147.188.198] (may be forged)) by be-well.ilk.org (8.12.6/8.12.6) with ESMTP id h0V36S9s055465 for ; Thu, 30 Jan 2003 22:06:28 -0500 (EST) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: (from lowell@localhost) by be-well.ilk.org (8.12.6/8.12.6/Submit) id h0V36S9I055462; Thu, 30 Jan 2003 22:06:28 -0500 (EST) X-Authentication-Warning: be-well.ilk.org: lowell set sender to freebsd-questions-local@be-well.ilk.org using -f To: freebsd-questions@freebsd.org Subject: Re: Ooops. References: <005601c2c8c5$47735b10$6501a8c0@grant> <1043981504.3e39e4c0b6e66@webmail.adam.com.au> From: Lowell Gilbert Date: 30 Jan 2003 22:06:28 -0500 In-Reply-To: <1043981504.3e39e4c0b6e66@webmail.adam.com.au> Message-ID: <44znpinhl7.fsf@be-well.ilk.org> Lines: 32 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG bastill@adam.com.au writes: > rm will, unless specifically denied (I THINK you can do that), also follow symlinks. > In my case I was copying files from one HD to another, put one in the wrong > place, and deleted it using rm -rf , only to find that it deleted the original > as well! :-( Eh? > PS I think rm needs looking at so it defaults to NOT deleting copy AND source by > default. [502] (be-well) lowell> mkdir temp [503] (be-well) lowell> cd temp [504] (be-well) temp> mkdir a b [505] (be-well) temp> touch a/foo [506] (be-well) temp> ln -s a/foo b/baz [507] (be-well) temp> ls -l a b a: total 0 -rw-r--r-- 1 lowell lowell 0 Jan 30 22:05 foo b: total 0 lrwxr-xr-x 1 lowell lowell 5 Jan 30 22:05 baz@ -> a/foo [508] (be-well) temp> rm -rf b [509] (be-well) temp> ls -l * total 0 -rw-r--r-- 1 lowell lowell 0 Jan 30 22:05 foo [510] (be-well) temp> Can you explain what you think is a problem? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message