[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Empty array referenced by indirection reports unbound variable
From: |
Alex fxmbsw7 Ratchev |
Subject: |
Re: Empty array referenced by indirection reports unbound variable |
Date: |
Tue, 6 Apr 2021 16:38:18 +0200 |
what i meant was there is not one element defined so .. any reference to
anything in it will be not set.. makes sense @ is not defined
i remember !var worked with it, or at least other defined sub elements
On Tue, Apr 6, 2021, 16:26 konsolebox <konsolebox@gmail.com> wrote:
> On Tue, Apr 6, 2021 at 9:57 PM Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com>
> wrote:
> >
> > arr=( ) implies no [0]=
>
> Also `arr=()` does not imply `arr[0]=`. `arr[0]` remains unset and not
> assigned to any. Not even an empty string.
>
> --
> konsolebox
>
Re: Empty array referenced by indirection reports unbound variable, Chet Ramey, 2021/04/07