-
-
Notifications
You must be signed in to change notification settings - Fork 816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fd -L
omits broken symlinks
#357
Comments
Thank you very much for reporting this. Notice that you can use
I guess it's debatable what the result should actually be. After all, you tell But I think you are probably right and we should try to follow Other opinions? |
This just bit me today; I agree the expected behavior is to follow find here, and just list the symlink as a direntry, if de-referencing fails. |
@sharkdp remember when we comparing the results between |
This has been fixed in #497. Thank you @neersighted and @tommilligan for your initial attempts. The final solution is a third approach that takes inspiration from both previous implementations. |
Released in fd 7.5.0 |
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 observedfind
behavior.Example:
Notice how
fd -L
completely omitted the brokenc
symlink. Continued: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).
The text was updated successfully, but these errors were encountered: