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

Re: bashcompinit: sourcing /etc/bash_completion



-----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.)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iD8DBQFVecJHfAK/hT/mPgARAirWAKD8g3v6E4g8rNP8fof5u1rryrsnQwCdGzeg
qE5JNN2mMTuqSNigMcvYfsU=
=yzsZ
-----END PGP SIGNATURE-----



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