mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 06:56:09 +08:00

When cd is passed a broken symlink, this changes the error message from "no such directory" to "broken symbolic link". This scenario probably won't happen very often since completion won't suggest broken symlinks but it can't hurt to give a good error. Fish used to do this until 7ac5932. This logic used to be in path_get_cdpath, however, that is only used for highlighting, so we don't need error messages there. Changing cd is enough. Reword from "rotten" to "broken" since that's what file(1) uses. Clean-up leftovers from old "rotten" code (nomen est omen). See #8264