Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: bashcompinit: sourcing /etc/bash_completion
- X-seq: zsh-users 20257
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Daniel Hahler <genml+zsh-workers@xxxxxxxxxx>
- Subject: Re: bashcompinit: sourcing /etc/bash_completion
- Date: Thu, 11 Jun 2015 19:31:42 +0200
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=SOSMmQ/pyuwZctOjTDRnuRpuh2po7H5Q3IawWp7u7JE=; b=OaWVprPR6jHeFl/plC/Zi1etB/DvjcypeQI1KOic8/XecfaNUYFFNG7+Aux6KkiN+4 q8KAagboZ8nzSKK1A8tw2yyvHlTu2GTrh8iVWwKZQkdIf9TUUpqbYE4Gur3veEcT1Ekc qiGJrXM+KCqKs2ZlrboHR73OgJKiycusxMtjRjr5ze5jE2tTgfInApMrzUv9ui8k7Rcs vgOzghUuBnO57oeR8ZfBL9+yzFVI4VGWE/Xpl4iRBuAKada/4MK56IHG9NPGVtg/KqbW Kdxxtrjqf2k/IwROkGvTjBW0O/dfEgO8MobNbMtnzrSVDcSqGNuveFGrOD1jOK0+duMH B0ug==
- In-reply-to: <5579C247.1060800@thequod.de>
- 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> <5579C247.1060800@thequod.de>
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