bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `${array[index]=value}' broken in devel


From: Chet Ramey
Subject: Re: `${array[index]=value}' broken in devel
Date: Mon, 13 Dec 2021 15:23:18 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.4.0

On 12/13/21 2:36 AM, Oğuz wrote:
> To reproduce:
> 
>   $ a=()
>   $ echo ${a[42]=foo}
>   Desktop Documents Downloads mpv-shot0001.jpg Music Pictures Public
> Videos VirtualBox VMs
>   $ declare -p a
>   declare -a a=([42]="foo")
> 
> or
> 
>   $ declare -A a
>   $ echo ${a[foo]=bar}
>   P�ϝU
>   $ declare -p a
>   declare -A a=([foo]="bar" )

Thanks for the report.


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

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