[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: zsh style associative array assignment bug
From: |
Oğuz |
Subject: |
Re: zsh style associative array assignment bug |
Date: |
Sun, 28 Mar 2021 07:25:50 +0300 |
28 Mart 2021 Pazar tarihinde Eric Cook <llua@gmx.com> yazdı:
> Hey,
>
> When doing an assignment with an uneven number of elements bash currently
> silently treat the last element
> as a key and assigns it an empty string.
>
> $ typeset -A ary=(this feature came from zsh); typeset -p ary
> declare -A ary=([came]="from" [this]="feature" [zsh]="" )
>
> In zsh this is an error,
> % typeset -A ary=(this feature came from zsh); typeset -p ary
> zsh: bad set of key/value pairs for associative array
>
> Could bash be adjusted to align with zsh in this case?
Why? I think it's better this way.
--
Oğuz
- zsh style associative array assignment bug, Eric Cook, 2021/03/27
- Re: zsh style associative array assignment bug,
Oğuz <=
- Re: zsh style associative array assignment bug, Eric Cook, 2021/03/28
- Re: zsh style associative array assignment bug, Oğuz, 2021/03/28
- Re: zsh style associative array assignment bug, Ilkka Virta, 2021/03/28
- Re: zsh style associative array assignment bug, Oğuz, 2021/03/28
- Re: zsh style associative array assignment bug, Eric Cook, 2021/03/28
- Re: zsh style associative array assignment bug, Oğuz, 2021/03/28
- Re: zsh style associative array assignment bug, Greg Wooledge, 2021/03/28
- Re: zsh style associative array assignment bug, Andreas Schwab, 2021/03/29
- Re: zsh style associative array assignment bug, Ilkka Virta, 2021/03/29
- Re: zsh style associative array assignment bug, Robert Elz, 2021/03/28