[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Issue declaring an array via a variable name
From: |
Alex fxmbsw7 Ratchev |
Subject: |
Re: Issue declaring an array via a variable name |
Date: |
Sun, 22 Aug 2021 22:51:07 +0200 |
yea i dunno to say, i dont care, peace..
On Sun, Aug 22, 2021, 22:48 Lawrence Velázquez <vq@larryv.me> wrote:
> On Sun, Aug 22, 2021, at 4:38 PM, Alex fxmbsw7 Ratchev wrote:
> > last time again
>
> You promise?
>
> > one pair quotes, not more
>
> Except you're wrong.
>
> $ val=foo
> $ declare "$val"='x'
> $ declare -p "$val"
> declare -- foo="x"
>
> $ val=bar
> $ declare -a "$val"='(baz quux)'
> $ declare -p "$val"
> declare -a bar=([0]="baz" [1]="quux")
>
>
> --
> vq
>
- Re: Issue declaring an array via a variable name, (continued)
- Re: Issue declaring an array via a variable name, Chet Ramey, 2021/08/16
- Re: Issue declaring an array via a variable name, Hunter Wittenborn, 2021/08/19
- Re: Issue declaring an array via a variable name, Oğuz, 2021/08/20
- Re: Issue declaring an array via a variable name, Hunter Wittenborn, 2021/08/21
- Re: Issue declaring an array via a variable name, Alex fxmbsw7 Ratchev, 2021/08/21
- Re: Issue declaring an array via a variable name, Lawrence Velázquez, 2021/08/21
- Re: Issue declaring an array via a variable name, Oğuz, 2021/08/22
- Re: Issue declaring an array via a variable name, Chet Ramey, 2021/08/22
- Re: Issue declaring an array via a variable name, Alex fxmbsw7 Ratchev, 2021/08/22
- Re: Issue declaring an array via a variable name, Lawrence Velázquez, 2021/08/22
- Re: Issue declaring an array via a variable name,
Alex fxmbsw7 Ratchev <=