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

Re: bashcompinit: sourcing /etc/bash_completion



On Thu, Jun 11, 2015 at 7:15 PM, Daniel Hahler
<genml+zsh-workers@xxxxxxxxxx> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 11.06.2015 04:14, Bart Schaefer wrote:
>> On Jun 10, 10:09pm, Daniel Hahler wrote:
>
>> } It fails with the following line:
>> }
>> }     local cword words=()
>
>> Well, that's unfortunate.  In zsh "local" is not a special token, so the
>> arguments are parsed as normal shell words, so you cannot have an array
>> initialization as part of a "local" declaration.
>
> Could this be easily improved, without breaking backward-compatibility?
>
> (I've found myself trying to use this pattern before.)

It's probably much easier to ask the bash-completion maintainer to
initialize words on the next line.

-- 
Mikael Magnusson



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