Is it possible, or is there some elegant hack to do indirect variable expansion in POSIX as can be done in Bash?
For context, I'm trying to do the following:
for key in ${!map_*}
do
# do something
done
EDIT: To clarify, I'd like to access shell variables that begin with map_
.
map_*
). – slm Jan 30 '14 at 16:45sh
VSbash
-- see http://stackoverflow.com/a/5725402/1172302. – Nikos Alexandris Dec 22 '15 at 03:19