Thanks for the report.

That's the behavior that appears to be required by the specification.
Also, it is consistent with what other versions of ln do.
If you find a version of ln that works differently, please let me know.

Alexander Thiel <[EMAIL PROTECTED]> writes:
| 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.

Reply via email to