Re: 2.1.76: weird behavior of "ln -sf dir link"

Anders Hammarquist (
Sat, 17 Jan 1998 16:04:09 +0100

In article <m24t33o20g.fsf$> you write:

>I've found a weird behavior of creating a symbolic links to
>directories. If the link to directory already exists, then "ln -sf"
>will not be able to change the link:

It's not the kernel, it's GNU ln that has this rather odd (IMHO)
behaviour. Try "ln -nsf" instead and watch it work as you expect. (-n
tells ln not to dereference links in the target).


 -- Of course I'm crazy, but that doesn't mean I'm wrong.
Anders Hammarquist   |       Mud at Kingdoms        |
NetGuide Scandinavia |   telnet 1812    | Fax: +46 31 50 79 39   |                              | Tel: +46 31 50 79 40