[prev in list] [next in list] [prev in thread] [next in thread]
List: coreutils-bug
Subject: Re: Removing link to a directory
From: Paul Eggert <eggert () CS ! UCLA ! EDU>
Date: 2007-04-17 0:04:38
Message-ID: 878xcrg92h.fsf () penguin ! cs ! ucla ! edu
[Download RAW message or body]
"Mohammad Seth" <Mohammad.Seth@nsc.com> writes:
> *Symptom*: Could not remove a link to a directory, got the message
>
>>rm current/
> rm: remove directory `current/'? y
> rm: cannot remove directory `current/': Is a directory
>
> current is a symbolic link to directory.
Once you specify the trailing slash, it's no longer talking about the
symbolic link: it's talking about the directory that the link points
to. It's a bit like specifying a trailing "/.". For example:
$ ln -s . dir
$ rm dir/
rm: cannot remove `dir/': Is a directory
$ rm dir/.
rm: cannot remove `.' directory `dir/.'
$ rm dir
$
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic