Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completion with ksh_arrays broken since 4.3.12
- X-seq: zsh-workers 29596
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Christopher Zimmermann <madroach@xxxxxxxxx>
- Subject: Re: completion with ksh_arrays broken since 4.3.12
- Date: Fri, 22 Jul 2011 15:16:47 +0200
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=zl0s7LKrl38UDJ+1Q45HyaLuqqOM1FD0d7WcOBiiC0Q=; b=VCQjku2OAjSnSDh/8pV/BSEcmCUGl/oIbkvr/6UGJmZ9A2OOPOoCFeUtC2jnAKPBfr 1UsoV7XKwKG0qd5Ljy5cD6WOw1iYzrV3fcm8sfeyTXezpufYNR2d+s3dCNWtlODVflgv xYMFeLXkqBwovSBSemsYdOB1Y1FYvkfvxpdG0=
- In-reply-to: <4E297542.3020500@zakweb.de>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <4E297542.3020500@zakweb.de>
On 22 July 2011 15:04, Christopher Zimmermann <madroach@xxxxxxxxx> wrote:
> Hi,
>
> I just upgraded to zsh 4.3.12 and now completion with zsh_arrays is broken:
>
> % compinit
> % setopt ksh_arrays
> % ls [TAB]
> (eval):2: bad set of key/value pairs for associative array
> _main_complete:126: command not found: [@][@]
> _main_complete:165: command not found: _complete[@]
> _main_complete:186: bad output format specification
> % ls
This is my fault, I'll commit this fix:
diff --git a/Completion/compinit b/Completion/compinit
index a0f2348..d25642e 100644
--- a/Completion/compinit
+++ b/Completion/compinit
@@ -161,7 +161,7 @@ _comp_options=(
# and don't get confused by user's ZERR trap handlers.
typeset -g _comp_setup='local -A _comp_caller_options;
- _comp_caller_options=(${(kv)options});
+ _comp_caller_options=(${(kv)options[@]});
setopt localoptions localtraps ${_comp_options[@]};
local IFS=$'\'\ \\t\\r\\n\\0\''
exec </dev/null;
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author