[clue] bash/using variables in variable names

Mike Bean beandaemon at gmail.com
Fri Jun 21 15:05:39 MDT 2013


OK, I am just thoroughly writer's blocked, probably missing something
obvious; but who knows.  Anyway, here's my question

# node=somenode
# echo $node
somenode
# somenodeVar=5  * // if this works*
# echo $somenodeVar
5
# $node"Var"=5 *// why doesn't this work?*
bash: somenodeVar=5: command not found
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cluedenver.org/pipermail/clue/attachments/20130621/77dd41af/attachment.html 


More information about the clue mailing list