From owner-freebsd-hackers Thu Apr 11 19:29:31 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id A813637B404 for ; Thu, 11 Apr 2002 19:29:23 -0700 (PDT) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.3/8.11.3) with ESMTP id g3C2TMi12120 for ; Thu, 11 Apr 2002 20:29:22 -0600 (MDT) (envelope-from imp@village.org) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.11.6/8.11.6) with ESMTP id g3C2TLc48046 for ; Thu, 11 Apr 2002 20:29:21 -0600 (MDT) (envelope-from imp@village.org) Date: Thu, 11 Apr 2002 20:29:20 -0600 (MDT) Message-Id: <20020411.202920.24384470.imp@village.org> To: Bcc-Receiver: ; Subject: A blind carbon copy From: imp@village.org X-Mailer: Mew version 2.1 on Emacs 21.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Thu_Apr_11_20:29:20_2002_047)--" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ----Next_Part(Thu_Apr_11_20:29:20_2002_047)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit This is a blind carbon copy. ----Next_Part(Thu_Apr_11_20:29:20_2002_047)-- Content-Type: Message/Rfc822 Content-Transfer-Encoding: 7bit Date: Thu, 11 Apr 2002 20:29:16 -0600 (MDT) Message-Id: <20020411.202916.81341318.imp@village.org> To: bgd@icomag.de cc: standards@freebsd.org Subject: Re: 'rm' incompatibility with Posix.2 From: M. Warner Losh In-Reply-To: <20020409112048.D75449-200000@fw.cgn.icom> References: <20020409112048.D75449-200000@fw.cgn.icom> X-Mailer: Mew version 2.1 on Emacs 21.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit In message: <20020409112048.D75449-200000@fw.cgn.icom> Bogdan TARU writes: : bgd@cvs$ mkdir temp : bgd@cvs$ ln -s temp b : bgd@cvs$ ls -ald temp b : lrwxr-xr-x 1 bgd wheel 4 Apr 9 11:27 b -> temp : drwxr-xr-x 2 bgd wheel 512 Apr 9 11:27 temp : bgd@cvs$ rm -rf b/ : bgd@cvs$ ls -ald temp b : ls: temp: No such file or directory : lrwxr-xr-x 1 bgd wheel 4 Apr 9 11:27 b -> temp : bgd@cvs$ : As you can see, when I tried to remove the symlink 'b' with a trailing : slash 'rm -rf b/', the target directory was removed instead of the actual : symlink. Of course, this is weird (tryied it on some other 10 un*xes, and : all worked in another way). No, you removed 'b/' which is the same thing as 'b/.' which is the directory to which 'b' points. That's BSD, and that's not likely going to change. Too many user scripts would break, I can guarantee that. I'd like to see chapter and vers of "Posix.2" quoted that requires this. There is no "Posix.2" standard anymore, so I kinda doubt that is such a requirement. This should also be discussed on the standards list, so I've changed the CC to that list and only bcc'd hackers@. Warner ----Next_Part(Thu_Apr_11_20:29:20_2002_047)---- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message