mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 17:07:44 +00:00
Invert test for implicit cd after builtin command
Because `command ./somedir/somecommand` is okay. Fixes test failure fromaa304cbd3d
. Child directories in $PATH are still not suggested, as was the main intention of the commit that introduced the tests:8a3cf144f
Don't include child directories of $PATH in completions.
This commit is contained in:
parent
e78ed51747
commit
0a2eea4cc6
1 changed files with 2 additions and 2 deletions
|
@ -299,11 +299,11 @@ if begin
|
|||
end
|
||||
#CHECK: implicit cd complete works
|
||||
if complete -C"command $dir" | grep "^$dir/.*Directory" >/dev/null
|
||||
echo "implicit cd complete incorrect after 'command'"
|
||||
echo "implicit cd complete after 'command'"
|
||||
else
|
||||
echo "no implicit cd complete after 'command'"
|
||||
end
|
||||
#CHECK: no implicit cd complete after 'command'
|
||||
#CHECK: implicit cd complete after 'command'
|
||||
popd
|
||||
if begin
|
||||
set -l PATH $PWD/test6.tmp.dir $PATH 2>/dev/null
|
||||
|
|
Loading…
Reference in a new issue