-
Notifications
You must be signed in to change notification settings - Fork 7
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
z
shows paths with embedded ../ instead of resulting cwd
#76
Comments
As an idle FYI, since the last release the order of the list has been reversed since it made sense to have more likely candidates nearer the top, but that doesn't really change this issue meaningfully.
I think this is a bug. Having a directory show up twice if there are bindmounts or symlinks might not be a bug. Anyways, my theory is this happened due to the maybe add relative code. That code causes things like Since it doesn't do a The other method entries are added (the I skimmed bash's code, and it looks like getcwd sets the PWD variable, and that section grabs the name from walking up the directory tree from '.' to '/' and using dirnames, so it seems like it couldn't end up with a It seems to me like we should be able to just canonicalize the directory in Thanks for the report! |
I was able to reproduce this by running It looks like |
What we ideally want is to be able to call |
When I run
z
, I see paths with embedded../
instead of the resulting cwd after changing directory. The path I expect to see is much lower.Not sure if this is a bug, but I'm filing this based on our IRC conversation.
The text was updated successfully, but these errors were encountered: