1 2 3 4 5
readvar() { local var=$1; if [ ! "$var" ]; then _debug "readvar: missing arg: var"; exit 1; fi eval "echo \$$var" }