mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 23:22:53 +08:00
Add a test for fish_add_path with relative paths
This commit is contained in:
parent
9fa70d3ace
commit
ff8a79a823
@ -36,6 +36,13 @@ fish_add_path -v $tmpdir/link
|
||||
echo $status
|
||||
# CHECK: 0
|
||||
|
||||
# Relative paths are made absolute
|
||||
set -l oldpwd $PWD
|
||||
cd $tmpdir
|
||||
fish_add_path -nv sbin .
|
||||
# CHECK: set fish_user_paths /{{.*}}/sbin /{{.*}} /{{.*}}/link /{{.*}}/bin
|
||||
cd $oldpwd
|
||||
|
||||
fish_add_path -a $tmpdir/sbin
|
||||
# Not printing anything because it's not verbose, the /sbin should be added at the end.
|
||||
string replace -- $tmpdir '' $fish_user_paths | string join ' '
|
||||
|
Loading…
x
Reference in New Issue
Block a user