Hello,

I found that the -f flag does not work in the ln command shipped with
fileutils version 4.0 when the target is a directory. I.e. instead of
removing the old link and then creating a new link to a different target,
a link is created in the target directory of the existing link ( if you
have write permission )

Example:
> mkdir thisdir thatdir
> ln -s thisdir link
> ln -sf thatdir link
> ls -lR th*

lrwxrwxrwx  ...  link -> thisdir

thatdir:
total 0

thisdir:
total 0
lrwxrwxrwx  ...  thatdir -> thatdir

Maybe this is a feature ;-), but I think it is a bit counterintuitive.

Best regards,

        Alex

Reply via email to