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

--real-path #268

Closed
drahnr opened this issue Mar 25, 2018 · 5 comments
Closed

--real-path #268

drahnr opened this issue Mar 25, 2018 · 5 comments
Labels
Milestone

Comments

@drahnr
Copy link

drahnr commented Mar 25, 2018

The option --absolute-path creates "messy" results when used with relative dirs. As such I would propose another option similar to the bash command realpath.

@sharkdp
Copy link
Owner

sharkdp commented Mar 25, 2018

Thank you for the feedback. Could you please give a (reproducible) example and what you would expect?

@sharkdp
Copy link
Owner

sharkdp commented Mar 25, 2018

Oh, you probably refer to something like this:

> fd mod .. -a
/home/shark/Dropbox/Informatik/rust/fd/src/../src/exec/mod.rs
/home/shark/Dropbox/Informatik/rust/fd/src/../src/fshelper/mod.rs
/home/shark/Dropbox/Informatik/rust/fd/src/../src/lscolors/mod.rs
/home/shark/Dropbox/Informatik/rust/fd/src/../tests/testenv/mod.rs

This actually seems like a bug. The paths should be normalized.

@sharkdp sharkdp added the bug label Mar 25, 2018
@sharkdp sharkdp added this to the 7.0 milestone Mar 25, 2018
sharkdp added a commit that referenced this issue Mar 25, 2018
@sharkdp
Copy link
Owner

sharkdp commented Mar 25, 2018

Fixed via #270

@drahnr
Copy link
Author

drahnr commented Mar 26, 2018

@sharkdp awesome, that was fast :)

@sharkdp
Copy link
Owner

sharkdp commented Mar 26, 2018

Released in fd v7.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants