can't delete directory symlinks??
David A. Bandel
david
Mon May 17 11:57:10 PDT 2004
-----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. ;-)
Ciao,
David A. Bandel
- --
Focus on the dream, not the competition.
Nemesis Racing Team motto
GPG key autoresponder: mailto:david_key at pananix.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/5iqPj31PLQNUbV4RAuwWAJ9qw8FeFeTmToV3fwXO1Y6gwcHwjwCfRYC0
B/K7X/CPsQ0cdzV6c5TrdPQ=
=rJL7
-----END PGP SIGNATURE-----
More information about the Linux-users
mailing list