mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-28 09:31:16 -03:00
Correctly remove the test directory again in cd test
This commit is contained in:
@@ -39,16 +39,16 @@ complete -C'ls ../'
|
||||
echo "cd:"
|
||||
complete -C'cd ../'
|
||||
|
||||
# cd back before removing the test directory again.
|
||||
cd $oldpwd
|
||||
rm -Rf $base
|
||||
|
||||
logmsg Virtual PWD inheritance
|
||||
# PWD should be imported and respected by fish
|
||||
|
||||
cd $oldpwd
|
||||
mkdir -p $base/realhome
|
||||
set fish_path $PWD/../test/root/bin/fish
|
||||
ln -s $base/realhome $base/linkhome
|
||||
cd $base/linkhome
|
||||
env HOME=$base/linkhome $fish_path -c 'echo PWD is $PWD'
|
||||
|
||||
# cd back before removing the test directory again.
|
||||
cd $oldpwd
|
||||
rm -Rf $base
|
||||
|
||||
Reference in New Issue
Block a user