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

Absolute paths not recognized (?) by cd_correction #784

Closed
alexbarcelo opened this issue Feb 16, 2018 · 0 comments
Closed

Absolute paths not recognized (?) by cd_correction #784

alexbarcelo opened this issue Feb 16, 2018 · 0 comments

Comments

@alexbarcelo
Copy link

thefuck version:

The Fuck 3.25 using Python 3.6.3

Using fish in Ubuntu 17.04

To reproduce the bug:

cd /var/log/apr
fuck  # doesn't recommend /var/lib/apt as the correct path

cd /var/lib
cd apr
fuck  # recommends /var/lib/apt as the correct path

Both commands with DEBUG activated yields a lot of lines finishing with:

DEBUG: Trying rule: cd_correction; took: 0:00:00.000028

So it seems that cd_correction is behaving differently when the path is absolute.

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

No branches or pull requests

3 participants