can't delete directory symlinks??

Net Llama! netllama
Mon May 17 11:57:09 PDT 2004


On 12/21/03 11:33, Joel Hammer wrote:

> You haven't aliased rm to mean something like rm -rf ?
> 
> Joel
> 
> On Sun, Dec 21, 2003 at 10:14:38AM -0800, Net Llama! 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?

Nope, no aliases for rm.  The odd thing is, if I rename the directory, 
causing the symlink to become broken, then i can delete the symlink.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
L. Friedman                       	       netllama at linux-sxs.org
Linux Step-by-step & TyGeMo: 		    http://netllama.ipfox.com

   1:00pm  up 14 days, 17:48,  1 user,  load average: 0.09, 0.03, 0.01


More information about the Linux-users mailing list