On Wed, Oct 17, 2018 at 9:05 AM Chet Ramey wrote:
> You know this has already been done, right?
I do now! Still trying to get caught up with the changelog.
On 10/16/18 10:10 AM, Dan Douglas wrote:
> On Mon, Aug 27, 2018 at 8:12 PM Chet Ramey wrote:
>>
>> On 8/27/18 12:25 PM, Grisha Levit wrote:
>>> This used to work:
>>>
>>> bash-4.4$ a=0
>>> bash-4.4$ echo $(( a[a[0]] ))
>>> 0
>>> bash-4.4$ echo ${a[a[a[0]]]}
>>> 0
>
> Just curious, did you decide
On Mon, Aug 27, 2018 at 8:12 PM Chet Ramey wrote:
>
> On 8/27/18 12:25 PM, Grisha Levit wrote:
> > This used to work:
> >
> > bash-4.4$ a=0
> > bash-4.4$ echo $(( a[a[0]] ))
> > 0
> > bash-4.4$ echo ${a[a[a[0]]]}
> > 0
Just curious, did you decide what to do with this?
> This is part of changes
On 8/27/18 12:25 PM, Grisha Levit wrote:
> This used to work:
>
> bash-4.4$ a=0
> bash-4.4$ echo $(( a[a[0]] ))
> 0
> bash-4.4$ echo ${a[a[a[0]]]}
> 0
>
> But is broken in bash-5.0:
>
> bash-5.0$ a=0
> bash-5.0$ echo ${a[a[a[0]]]}
> bash: a[a[0]]: syntax error: invalid arithmetic operator (error
This used to work:
bash-4.4$ a=0
bash-4.4$ echo $(( a[a[0]] ))
0
bash-4.4$ echo ${a[a[a[0]]]}
0
But is broken in bash-5.0:
bash-5.0$ a=0
bash-5.0$ echo ${a[a[a[0]]]}
bash: a[a[0]]: syntax error: invalid arithmetic operator (error token is "]")
bash-5.0$ echo $(( a[a[0]] ))
bash: a[a[0]] : syntax