Subject: bug#28927: ln -fs dir name doesn't force

From: "Sven C. Dack" <[email-masked]>
Date: Sat, 21 Oct 2017 19:19:25 +0100

Hello,

I've noticed the -f or --force option of ln doesn't seem to work.

$ ln --version
ln (GNU coreutils) 8.28
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Mike Parker and David MacKenzie.
$ mkdir foo bar
$ ln -s foo baz
$ ls -l baz
lrwxrwxrwx 1 sven sven 3 Oct 21 19:15 baz -> foo
$ ln -fs bar baz
$ ls -l baz
lrwxrwxrwx 1 sven sven 3 Oct 21 19:15 baz -> foo
$ ln --force -s bar baz
$ ls -l baz
lrwxrwxrwx 1 sven sven 3 Oct 21 19:15 baz -> foo
$

The link should have been set to "bar" with the "-f" or "--force" 
option, shouldn't it?

Cheers