Skip to content

ln -f: ln: 'file' and 'dir/file' are the same file #8830

@julian-klode

Description

@julian-klode

Forwarded from https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2126909

$ mdkir dir
$ touch file
$ ln file dir
$ ln -f file dir

Gives error: ln: 'file' and 'dir/file' are the same file

But should not notice, as -f unlinks files first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions