diff --git a/tests/test6.in b/tests/test6.in index b18e6f9da..193cee314 100644 --- a/tests/test6.in +++ b/tests/test6.in @@ -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 diff --git a/tests/test6.out b/tests/test6.out index ca6e69066..a7f04732c 100644 --- a/tests/test6.out +++ b/tests/test6.out @@ -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