This is a blind carbon copy.
--- Begin Message ---
In message: <[EMAIL PROTECTED]>
            Bogdan TARU <[EMAIL PROTECTED]> 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
--- End Message ---

Reply via email to