Skip to content

fd -L omits broken symlinks #357

@lilyball

Description

@lilyball

It appears that fd -L completely omits any broken symlinks. Instead it should fall back to treating a broken symlink as though -L was not specified, which matches the observed find behavior.

Example:

> touch a
> ln -s b c
> ln -s a d
> exa
a  c@  d@
> find -L .
.
./a
./c
./d
> fd -L
a
d
>

Notice how fd -L completely omitted the broken c symlink. Continued:

> find -L . -type l
./c
> fd -L -t l
>

Notice how find is treating the broken symlink exactly as though -L were not specified.

This was tested with fd 7.2.0 on macOS 10.14.1 (18B75).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions