Skip to content

completion: avoid errors from words starting with a dash

Ville Skyttä requested to merge (removed):fix/completion-protect-dashopt into main

Make sure words to complete are not interpreted as compgen options.

For example, dconf list -X<TAB> used to yield:

bash: compgen: -X: option requires an argument
compgen: usage: compgen [-abcdefgjksuv] [-o option] [-A action] [-G globpat] [-W wordlist] [-F function] [-C command] [-X filterpat] [-P prefix] [-S suffix] [word]

Merge request reports