From owner-freebsd-questions Wed Feb 26 12:31:48 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 0175837B401 for ; Wed, 26 Feb 2003 12:31:47 -0800 (PST) Received: from kanga.honeypot.net (kanga.honeypot.net [208.162.254.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id CAB2843F75 for ; Wed, 26 Feb 2003 12:31:45 -0800 (PST) (envelope-from kirk@strauser.com) Received: from pooh.strauser.com (kirk@pooh.honeypot.net [10.0.5.128]) by kanga.honeypot.net (8.12.7/8.12.7) with ESMTP id h1QKVhxc087325 for ; Wed, 26 Feb 2003 14:31:44 -0600 (CST) (envelope-from kirk@strauser.com) To: freebsd-questions@freebsd.org Subject: Re: Deleting a soft link that points to a directory - how? From: Kirk Strauser Date: Wed, 26 Feb 2003 14:31:43 -0600 In-Reply-To: (Steve Warwick's message of "Wed, 26 Feb 2003 12:26:05 -0800") Message-ID: <87smuahjgw.fsf@strauser.com> Lines: 17 X-Mailer: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 References: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" 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 --=-=-= Content-Transfer-Encoding: quoted-printable At 2003-02-26T20:26:05Z, Steve Warwick writes: > %rm -f MyTmp/ > rm: MyTmp/: is a directory > % > %rm -rf MyTmp/ (deletes the directory it points to) > %rm -f MyTmp (deletes the link) > % > Help, suggestions, magic? `MyTmp/' reference to the target. `MyTmp' (without the slash) refers to the link. Abracadabra! =2D-=20 Kirk Strauser In Googlis non est, ergo non est. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQA+XSQv5sRg+Y0CpvERAjFAAJ0XnJfUnBPStcKySR0pqOf7658JwwCfWank uLMDtalPhDYB5XWkzPaka6o= =Fi0Z -----END PGP SIGNATURE----- --=-=-=-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message