From owner-freebsd-hackers Thu Dec 30 11:57:50 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from D2SI.COM (D2SI.COM [63.224.10.2]) by hub.freebsd.org (Postfix) with ESMTP id 5F92314D46; Thu, 30 Dec 1999 11:57:45 -0800 (PST) (envelope-from ajk@paw-in-eye.net) Received: (from ajk@localhost) by D2SI.COM (8.9.3/8.9.3) id NAA03319; Thu, 30 Dec 1999 13:57:35 -0600 (CST) (envelope-from ajk) From: Alec Kloss Message-Id: <199912301957.NAA03319@D2SI.COM> Subject: Re: weirdness with a directory named ~ In-Reply-To: from Kenny Drobnack at "Dec 30, 1999 2:10:42 pm" To: kdrobnac@mission.mvnc.edu (Kenny Drobnack) Date: Thu, 30 Dec 1999 13:57:35 -0600 (CST) Cc: freebsd-hackers@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Kenny Drobnack said: > My question is: why did it do this?!?!? Also, how hard would it be > to make things so it would look for ./~, then if that file/direcotry > doesn't exist, then check for a home directory? Or is that even a good > idea? 1) Don't crosspost. 2) You've essentially answered your own question. Tildes at the beginning of pathnames are relative to a home directory. Tildes elsewhere in a path are not. So, to remove a directory named ~, use rmdir ./~ as below: %mkdir ./~ %ls -ld ./~ drwxr-xr-x 2 ajk wheel 512 Dec 30 13:56 ./~ %rmdir ~ rmdir: /home/alec: Permission denied %rmdir ./~ % To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message