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: Oğuz
Subject: Re: V+=1 doesn't work if V is a reference to an integer array element
Date: Wed, 13 Jan 2021 21:36:07 +0300

On Wed, Jan 13, 2021 at 8:49 PM Greg Wooledge <wooledg@eeg.ccf.org> wrote:

> On Wed, Jan 13, 2021 at 07:00:42PM +0200, Oğuz wrote:
> >     $ declare -n b=a[0]
>
> I can't see any documentation that supports the idea that this should
> be allowed in the first place.
>

It's common sense. `declare a[0]=x' works, `unset a[0]` either, why should
`declare -n b=a[0]' not work?


reply via email to

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