__fish_complete_directories: Use an empty command as the dummy

Fixes #9574
This commit is contained in:
Fabian Boehm
2023-02-14 17:06:11 +01:00
parent ce268b74dd
commit 200095998a
2 changed files with 8 additions and 3 deletions

View File

@@ -46,6 +46,10 @@ complete -c t -l fileoption -rF
complete -C't --fileoption ' | string match test.fish
# CHECK: test.fish
# See that an empty command gets files
complete -C'"" t' | string match test.fish
# CHECK: test.fish
# Make sure bare `complete` is reasonable,
complete -p '/complete test/beta1' -d 'desc, desc' -sZ
complete -c 'complete test beta2' -r -d 'desc \' desc2 [' -a 'foo bar'