[Help-bash] How to print transformed assoc array index?
From:
Peng Yu
Subject:
[Help-bash] How to print transformed assoc array index?
Date:
Wed, 12 Dec 2018 11:04:22 -0600
Hi,
It seems that the index of an assoc array cannot be transformed. This
seems "address@hidden/1}" to be a valid syntax. Why is it not support? Or I
am not using it correctly? Thanks.
$ declare -A y=([a1]=A1 [b1]=B1 [c1]=C1)
$ echo address@hidden/1}
-bash: A1 C1 B1: bad substitution
$ echo address@hidden/1}
A C B
$ echo address@hidden
A C B
$ echo address@hidden
-bash: A1 C1 B1: bad substitution
--
Regards,
Peng
[Prev in Thread]
Current Thread
[Next in Thread]
[Help-bash] How to print transformed assoc array index?,
Peng Yu<=