From 0a2eea4cc6188d5c848cb0fbd91ef13e4ff55128 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Tue, 24 Mar 2020 21:55:38 +0100 Subject: [PATCH] Invert test for implicit cd after builtin command Because `command ./somedir/somecommand` is okay. Fixes test failure from aa304cbd3d3. 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. --- tests/checks/complete.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/checks/complete.fish b/tests/checks/complete.fish index 665c6af7d..f07d062a4 100644 --- a/tests/checks/complete.fish +++ b/tests/checks/complete.fish @@ -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