Skip to content

Absolute paths not recognized (?) by cd_correction #784

@alexbarcelo

Description

@alexbarcelo

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions