bug-bash
[Top][All Lists]
Advanced

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

Re: V+=1 doesn't work if V is a reference to an integer array element


From: Ilkka Virta
Subject: Re: V+=1 doesn't work if V is a reference to an integer array element
Date: Wed, 13 Jan 2021 20:50:45 +0200

>
> Lots of things "could be useful" if only they worked, but they don't work,
> so you don't do them.
>

Yes, and it does work in 4.4.


> The fact that this undocumented, unsupported hack "appeared to work"
> with certain inputs in bash 4.4 is just an unfortunate event, unless
> Chet decides to make it an actual supported feature.
>

https://www.gnu.org/software/bash/manual/html_node/Shell-Parameters.html ,
bottom chapter, in the middle:

   However, nameref variables can reference array variables and subscripted
array variables.


reply via email to

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