mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-28 12:45:13 +00:00
Fix fish_add_path tests
Whoopsie! I forgot to adjust them for $PATH scope - it now prints a `-g` when setting $PATH verbosely.
This commit is contained in:
parent
7c2dd694e0
commit
392e48d242
1 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ string replace -- $tmpdir '' $fish_user_paths | string join ' '
|
||||||
set -l oldpath "$PATH"
|
set -l oldpath "$PATH"
|
||||||
fish_add_path -nP $tmpdir/etc | string replace -- $tmpdir ''
|
fish_add_path -nP $tmpdir/etc | string replace -- $tmpdir ''
|
||||||
# Should print a set command to prepend /etc to $PATH, but not actually do it
|
# Should print a set command to prepend /etc to $PATH, but not actually do it
|
||||||
# CHECK: set PATH /etc{{.*}}
|
# CHECK: set -g PATH /etc{{.*}}
|
||||||
|
|
||||||
# Confirm that $PATH didn't change.
|
# Confirm that $PATH didn't change.
|
||||||
test "$oldpath" = "$PATH"
|
test "$oldpath" = "$PATH"
|
||||||
|
@ -56,6 +56,6 @@ or echo "PATH CHANGED!!!" >&2
|
||||||
|
|
||||||
# See that moving multiple arguments removes the correct ones - #7776
|
# See that moving multiple arguments removes the correct ones - #7776
|
||||||
PATH=$tmpdir/{bin,etc,link,sbin} fish_add_path -nPpm $tmpdir/{link,sbin} | string replace -a $tmpdir ''
|
PATH=$tmpdir/{bin,etc,link,sbin} fish_add_path -nPpm $tmpdir/{link,sbin} | string replace -a $tmpdir ''
|
||||||
# CHECK: set PATH /link /sbin /bin /etc
|
# CHECK: set -g PATH /link /sbin /bin /etc
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in a new issue