[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
${variable@A} does not work for associative arrays
From: |
Arfrever Frehtes Taifersar Arahesis |
Subject: |
${variable@A} does not work for associative arrays |
Date: |
Wed, 19 Feb 2020 21:05:40 +0100 |
BASH 5.0.16.
$ VAR1=aaa
$ declare -a VAR2=(aaa)
$ declare -A VAR3=([aaa]=aaa)
$ declare -p VAR{1,2,3}
declare -- VAR1="aaa"
declare -a VAR2=([0]="aaa")
declare -A VAR3=([aaa]="aaa" )
$ echo "${VAR1@A}"
VAR1='aaa'
$ echo "${VAR2@A}"
declare -a VAR2='aaa'
$ echo "${VAR3@A}"
$
--
Arfrever Frehtes Taifersar Arahesis
- ${variable@A} does not work for associative arrays,
Arfrever Frehtes Taifersar Arahesis <=