GNU bug report logs -
#28927
ln -fs dir name doesn't force
Previous Next
Reported by: "Sven C. Dack" <sven.c.dack <at> sky.com>
Date: Sat, 21 Oct 2017 18:37:01 UTC
Severity: normal
Tags: notabug
Done: Assaf Gordon <assafgordon <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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
This bug report was last modified 6 years and 210 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.