|
From: | Wesley Hirsch |
Subject: | Re: Single quote character not handled well in associative array index |
Date: | Mon, 29 Aug 2016 23:28:47 -0400 |
declare -A a
b="80's"
((++a[$b]))
((++a["$b"]))
[[ $((++a[$b])) ]] || true
[[ $((++a["$b"])) ]] || true # this finally works and makes the variable =1
echo ${a["$b"]}
echo ${a[$b]}
[Prev in Thread] | Current Thread | [Next in Thread] |