"Dan Langille" wrote:

> On 4 Feb 2001, at 6:46, Greg Black wrote:
> 
> > Observe the following:
> > 
> >     $ uname -rs
> >     FreeBSD 4.1-RELEASE
> >     $ ls -l
> >     $ mkdir foo
> >     $ ln -s foo bar
> >     $ rmdir bar
> >     rmdir: bar: Not a directory
> 
> I'm quite sure that rm bar will work.

Of course it works.  The part you quoted was the introduction
and was as it "should" be.  You cut out the part with the actual
question.  I'll repeat it here:

    So far, so good -- but look at this:

        $ rmdir bar/
        $ ls -l
        total 0
        lrwxrwx---  1 gjb  wheel  3 Feb  4 06:35 bar -> foo
        $ 

    Oops, "rmdir bar/" ended up as "rmdir foo" and left the useless
    symlink bar in place.

What I'm saying is that the ls above should have shown the
directory foo, because "rmdir bar/" should not result in doing
the same as "rmdir foo".  IMO, "rmdir bar/" should elicit the
same response as "rmdir bar" -- "Not a directory" and no action.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to