[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?
- Re: V+=1 doesn't work if V is a reference to an integer array element, (continued)
- Re: V+=1 doesn't work if V is a reference to an integer array element, Chet Ramey, 2021/01/13
- Re: V+=1 doesn't work if V is a reference to an integer array element, Léa Gris, 2021/01/13
- Re: V+=1 doesn't work if V is a reference to an integer array element, Oğuz, 2021/01/14
- Re: V+=1 doesn't work if V is a reference to an integer array element, Chet Ramey, 2021/01/14
- Re: V+=1 doesn't work if V is a reference to an integer array element, Léa Gris, 2021/01/14
- Re: V+=1 doesn't work if V is a reference to an integer array element, Chet Ramey, 2021/01/14
Re: V+=1 doesn't work if V is a reference to an integer array element, Ilkka Virta, 2021/01/13
Re: V+=1 doesn't work if V is a reference to an integer array element,
Oğuz <=
Re: V+=1 doesn't work if V is a reference to an integer array element, Chet Ramey, 2021/01/13