Skip to content

Spaces in paths don't work on macOS in Fish #54

@hynek

Description

@hynek

When Hatch installs a Python version, the paths have spaces. E.g., /Users/hynek/Library/Application Support/hatch/pythons/pypy2.7/pypy2.7-v7.3.12-macos_arm64/bin

userpath adds this to my ~/.config/fish/config.fish:

# Created by `userpath` on 2023-12-12 07:22:33
set PATH $PATH /Users/hynek/Library/Application Support/hatch/pythons/pypy2.7/pypy2.7-v7.3.12-macos_arm64/bin

That doesn't work. If I add quotes around the path, it does.

Unrelatedly, you may to switch to fish_add_path --append which is more elegant (but also needs quotes).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions