-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
Milestone
Description
fish, version 3.2.2
MacOS 11.4
Darwin Kernel Version 20.5.0: Sat May 8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64
iTerm 3.4.8
xterm-256color
I've seen 2 behaviors.
One is easy to replicate - if PATH is empty before fish_add_path, then it will remain empty:
> set -e PATH
> fish_add_path -Pv "/usr/local/bin"
set PATH /usr/local/bin
> echo $PATH
> set PATH /bin
> fish_add_path -Pv "/usr/local/bin"
set PATH /usr/local/bin /bin
> echo $PATH
/usr/local/bin /binThe second behavior I'm beginning to think was a false memory. But I swear in some situations I've seen it keep only the path passed in, and ignore all the others. This might have been because I believed -v was actually doing something when it wasn't.