8000 CDPATH should implicitly include $PWD/"." · Issue #4484 · fish-shell/fish-shell · GitHub
[go: up one dir, main page]

Skip to content

CDPATH should implicitly include $PWD/"." #4484

@David-A-RogersHS2

Description

@David-A-RogersHS2

macOS Sierra/iterm

For testing purposes, I moved my fish directory elsewhere. If I set CDPATH to ~/mydirs, then if I am in my home dir, attempting to cd to any subdir fails. Note that ~/mydirs is empty at this point.

This terminal listing shows the issue.

Welcome to fish, the friendly interactive shell
david@Davids-MacBook-Pro ~> cd bin
david@Davids-MacBook-Pro ~/bin> ..
david@Davids-MacBook-Pro ~> set -x CDPATH /Users/david/mydirs/
david@Davids-MacBook-Pro ~> cd bin
cd: The directory 'bin' does not exist
david@Davids-MacBook-Pro ~> fish --version
fish, version 2.6.0
david@Davids-MacBook-Pro ~> echo $version
2.6.0
david@Davids-MacBook-Pro ~>

If I unset CDPATH, I can cd to subdirs of $HOME again.

I thought it might be something I did, but I removed my .config/fish directory and it still happens.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0