bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Sven C. Dack
Subject: bug#28927: ln -fs dir name doesn't force
Date: Sat, 21 Oct 2017 19:19:25 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

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







reply via email to

[Prev in Thread] Current Thread [Next in Thread]