Skip to content

Getting an error "cd: '/Users/x/Downloads/' is a rotten symlink" #8264

@elimist3

Description

@elimist3

Today I logged onto my machine and tried to cd ~/Downloads, but to my surprise fish returned an error cd: '/Users/x/Downloads/' is a rotten symlink.

It seems to originate from the builtin_cd function call here, however I can't tell what the reason is since my Downloads directory is not a symlink.

I'm able to cd into any other directory just fine and I'm able to access ~/Downloads through MacOS's file explorer (Finder) so I don't think the directory is corrupt.

When I chsh -s /bin/bash, I'm able to cd ~/Downloads just fine!

My config.fish is just the default config, and I've already tried reinstalling Fish from my package manager (homebrew), to no avail.

System info
Fish version: 3.3.1
Operating system: MacOS 11.5.2, arm64
Terminal: Alacritty
Affected by third-party customizations: no, output is the same

I have a feeling this may be difficult to reproduce but I thought I'd put this out there just in case there is an easy solution to be found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions