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

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



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.

Ordinatio Simplex

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Friday, May 15, 2020 8:53 AM, Daniel Shahaf d.s@xxxxxxxxxxxxxxxxxx wrote:

> I can't reproduce the original problem with either 5.7.1 or master
> (which isn't surprising, really — this functionality is too basic to
> have been broken for 15 months with nobody noticing). Can you provide
> a reproduction recipe starting with 'zsh -f'?
>
> O. simplex wrote on Fri, 15 May 2020 05:21 +0000:
>
> > Problematic line:
> > extra=( ${${${args#\([^\)]#\)}#\}%%[:=\[]} )
> > Working line:
> > extra=( ${${${args#\([^\)]#\)}#\}%%[:\[=]} )
> > The problem is the sequence of characters inside the bracket expression of last parameter expansion: [:=\[]
> > Substitute this for: [:\[=]
> > Ordinatio Simplex
> > Sent with ProtonMail Secure Email.
> > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> > On Sunday, December 1, 2019 1:42 AM, O. simplex ordinatio.simplex@xxxxxxxxxxxxx wrote:
> >
> > > Distro: Arch Linux
> > > Version: zsh 5.7.1 (x86_64-pc-linux-gnu)
> > > Action: Type "gpg " then press <tab>
> > > Actual behavior: termial output is: "_gpg:176: \[]*} not found"
> > > Expected behavior: suggestions for gpg command
> > > Ordinatio Simplex
> > > Sent with ProtonMail Secure Email

</tab>/d.s@xxxxxxxxxxxxxxxxxx



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