userpath icon indicating copy to clipboard operation
userpath copied to clipboard

Spaces in paths don't work on macOS in Fish

Open hynek opened this issue 2 years ago • 2 comments

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).

hynek avatar Dec 12 '23 07:12 hynek

Thanks! Would you be interested in opening a PR?

ofek avatar Dec 12 '23 15:12 ofek

no promises, but could you add a contributing.md that explains how to run the tests?

hynek avatar Dec 13 '23 13:12 hynek