Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Solution: Bu report - unix/_gpg completion broken



O. simplex wrote on Sat, 06 Jun 2020 06:38 +0000:
> Sorry, there is some time since my report.
> 
> The error is caused because i set shfileexpansion.
> 
> Steps after run % zsh -f:
> % autoload -U compinit
> % compinit
> % # if I try gpg aucompletion now, will work as expected
> % # so you was right
> % # now the detail in my personal config
> % setopt shfileexpansion
> % # if I try now, the error ( _gpg:176: \[]*} not found ) will appear
> 
> Since I removed the option shfileexpansion from my zshrc, and gpg completion worked as expected.

Thanks.  This should fix it:

diff --git a/Completion/compinit b/Completion/compinit
index f0f8421df..f4ff270f7 100644
--- a/Completion/compinit
+++ b/Completion/compinit
@@ -159,6 +159,7 @@ _comp_options=(
     NO_shglob
     NO_warnnestedvar
     NO_warncreateglobal
+    NO_shfileexpansion
 )
 
 # And this one should be `eval'ed at the beginning of every entry point



Messages sorted by: Reverse Date, Date, Thread, Author