[Pkg-zsh-devel] Bug#613162: zsh: Loading colors script fails, bad set of key/value pairs

Benjamin Peter benjaminpeter at arcor.de
Mon Feb 14 18:28:40 UTC 2011


Hi Frank,

On 02/14/2011 02:03 PM, Frank Terbeck wrote:
> Frank Terbeck wrote:
> [...]
>> My suspicion is that this is an effect of an option. Could it be, that
>> you're setting the `ksharrays' option? I strongly suspect that you do.
> [...]
>
> This supports my claim:
>
> zsh% zsh -fc 'autoload -U colors; colors'
> zsh% zsh -f -o ksh_arrays -c 'autoload -U colors; colors'
> colors:89: bad set of key/value pairs for associative array
> zsh% _

I had copied the zshrc values from my lenny system and yes, it contains.

# Arrays should start with zero!
setopt KSH_ARRAYS

:-)

Thanks for your help of figuring my problem out.

I changed the initialization order now and think about removing it ... 
when I don't even remember the option it might not be that important to 
me. Should set it in a script manually as required.

Anyways, would be cool if the system wide scripts would reset those kind 
of settings or set them individually as expected as you already 
suggested. Are you upstreaming your patch?

You patch works for me even if the ksharrays option is set.


regards,

Benjamin.





More information about the Pkg-zsh-devel mailing list