>>280
eval "echo \"\${hoge_$foo}\"

>>277 ならbash 限定かもしれんが eval なしでもできる
echo "${!b}"