can't delete directory symlinks??
Net Llama!
netllama
Mon May 17 11:57:10 PDT 2004
On 12/21/03 15:19, David A. Bandel wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Sun, 21 Dec 2003 10:14:38 -0800
> "Net Llama!" <netllama at linux-sxs.org> wrote:
>
>
>>I've just discovered some rather odd behavior when I can no longer
>>delete symlinks that point to directories.
>>
>>For example, if I have:
>>ln -s bar foo
>>foo -> bar
>>
>>where bar is a directory, if I try to delete foo:
>>rm foo
>>rm: cannot remove `foo/': Not a directory
>>
>>Am i missing something obvious?
>
>
> yes. The symlink is not called foo/ it's called foo. foo/ doesn't
> exist, so it's a little tough to delete it. Stop using your <Tab> key
> in bash and you won't have this problem. ;-)
doh! thanks. pebcak.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
L. Friedman netllama at linux-sxs.org
Linux Step-by-step & TyGeMo: http://netllama.ipfox.com
4:45pm up 14 days, 21:33, 1 user, load average: 0.35, 0.48, 0.39
More information about the Linux-users
mailing list