sh-var-value

sh-var-value is a compiled Lisp function in `sh-script.el'.

(sh-var-value VAR &optional IGNORE-ERROR)

Return the value of variable VAR, interpreting symbols.
It can also return t or nil.
If an invalid value is found, throw an error unless Optional argument
IGNORE-ERROR is non-nil.