Invert test for implicit cd after builtin command

Because `command ./somedir/somecommand` is okay.

Fixes test failure from aa304cbd3d.

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:
Johannes Altmanninger 2020-03-24 21:55:38 +01:00
parent e78ed51747
commit 0a2eea4cc6

View file

@ -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