complete: Print better error for -x -F

-x is a cheesy shortcut for `-rf`, so it conflicts with `-F`.

Fixes #8818.
This commit is contained in:
Fabian Homborg
2022-05-26 14:15:28 +02:00
parent be781e9144
commit 65b9c26fb4
2 changed files with 16 additions and 2 deletions

View File

@@ -463,3 +463,6 @@ complete -C"a=1 b=2 cmd_with_fancy_completion "
# CHECK: 1
complete -C"a=1 b=2 cmd_with_fancy_completion 1 "
# CHECK: 2
complete -c thing -x -F
# CHECKERR: complete: invalid option combination, '--exclusive' and '--force-files'