Skip to content
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

Path of directory symlink is resolved to real path #82

Closed
jakwings opened this issue Oct 8, 2017 · 1 comment · Fixed by #113
Closed

Path of directory symlink is resolved to real path #82

jakwings opened this issue Oct 8, 2017 · 1 comment · Fixed by #113
Labels
Milestone

Comments

@jakwings
Copy link
Contributor

jakwings commented Oct 8, 2017

$ tree -F
.
├── a/
│   └── a
└── b -> a/

In directory "b":

$ fd -a  # or fd -a . .
/path/a
/path/a/a
$ fd . $PWD
/path/a
/path/a/a

(For fd . $PWD, with or without option -L?) The result should be /path/b and /path/b/a unless resolving is requested by the user.

@jakwings
Copy link
Contributor Author

jakwings commented Oct 14, 2017

It is impossible to know whether the current directory . is a symlink. So we cannot fix fd -a.

And for fd "" "$PWD", we need a way to run shell scripts on both Windows and Linux.

sharkdp pushed a commit that referenced this issue Oct 15, 2017
@sharkdp sharkdp added this to the v5.0 milestone Oct 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants