mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
Add a test for complete
and --
This commit is contained in:
parent
b48b2ddfb2
commit
8e1661cd22
2 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue