Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: bashcompinit: sourcing /etc/bash_completion
- X-seq: zsh-users 20256
- From: Daniel Hahler <genml+zsh-workers@xxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: bashcompinit: sourcing /etc/bash_completion
- Date: Thu, 11 Jun 2015 19:15:51 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thequod.de; h= content-transfer-encoding:content-type:content-type:in-reply-to :references:subject:subject:mime-version:user-agent:from:from :date:date:message-id:received:received; s=postfix2; t= 1434042952; bh=etYszSSQtmNUVIk5AyGJ1V9UBOxoupODOPaGX6FGSGo=; b=j 5DSojftIqLghE9dTH5eJEGaMfQjFQsCDLrRwLNHOPYVbx+ceP+Fz7iwUjrUwpo6o Hw6jwaZkp2WPsZdMGJ3Lx5OQZi46p/DoL0fZJvCCopIo72ZM33oBMNp2Ohu6xH90 RagX8lWKqQ7zLCAJYfIjGfWRbSSH0JZJgKAMda/hPk=
- In-reply-to: <150610191427.ZM30841@torch.brasslantern.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <5578996E.3080700@thequod.de> <150610191427.ZM30841@torch.brasslantern.com>
-----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