Add a test for complete and --

This commit is contained in:
ridiculousfish 2016-12-08 02:00:24 -08:00
parent b48b2ddfb2
commit 8e1661cd22
2 changed files with 9 additions and 0 deletions

View file

@ -51,6 +51,12 @@ complete -c CCCC -e
echo "CCCC:"
complete -C'CCCC -' | sort
echo "Test that -- suppresses option completions"
complete -c TestDoubleDash -l TestDoubleDashOption
complete -C'TestDoubleDash -' | sort
echo "Expect no output:" (complete -C'TestDoubleDash -- -' | sort)
# Test that directory completions work correctly
if begin; rm -rf test6.tmp.dir; and mkdir test6.tmp.dir; end
pushd test6.tmp.dir

View file

@ -30,6 +30,9 @@ CCCC:
-b
-bar
CCCC:
Test that -- suppresses option completions
--TestDoubleDashOption
Expect no output:
implicit cd complete works
no implicit cd complete after 'command'
PATH does not cause incorrect implicit cd