bug-bash
[Top][All Lists]
Advanced

[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 22:01:14 +0300

On Sun, Mar 28, 2021 at 9:02 PM Eric Cook <llua@gmx.com> wrote:

> in typeset -A ary=([key]=) an explicit empty string is the value


No. An "explicit" empty string would be '', "", or something like that.
After `=' a value is expected but it's not there, so `[key]' is assigned
the empty string. `typeset -A ary=(key)' is similar, the value is not there
and the empty string is taken as the value instead.

but in the case of typeset -A ary=([key]) it was historically an error
>

Irrelevant. See above


reply via email to

[Prev in Thread] Current Thread [Next in Thread]