* completion with ksh_arrays broken since 4.3.12
@ 2011-07-22 13:04 Christopher Zimmermann
2011-07-22 13:16 ` Mikael Magnusson
0 siblings, 1 reply; 2+ messages in thread
From: Christopher Zimmermann @ 2011-07-22 13:04 UTC (permalink / raw)
To: zsh-workers
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
Regards,
Christopher Zimmermann
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: completion with ksh_arrays broken since 4.3.12
2011-07-22 13:04 completion with ksh_arrays broken since 4.3.12 Christopher Zimmermann
@ 2011-07-22 13:16 ` Mikael Magnusson
0 siblings, 0 replies; 2+ messages in thread
From: Mikael Magnusson @ 2011-07-22 13:16 UTC (permalink / raw)
To: Christopher Zimmermann; +Cc: zsh-workers
On 22 July 2011 15:04, Christopher Zimmermann <madroach@zakweb.de> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-07-22 13:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-22 13:04 completion with ksh_arrays broken since 4.3.12 Christopher Zimmermann
2011-07-22 13:16 ` Mikael Magnusson
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).