Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Apr 2002 20:29:20 -0600 (MDT)
From:      imp@village.org
To:        Bcc-Receiver: ;
Subject:   A blind carbon copy
Message-ID:  <20020411.202920.24384470.imp@village.org>

next in thread | raw e-mail | index | archive | help
----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 <imp@village.org>
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 <bgd@icomag.de> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020411.202920.24384470.imp>