eshell-parse-variable

eshell-parse-variable is a compiled Lisp function in `esh-var.el'.

(eshell-parse-variable)

Parse the next variable reference at point.
The variable name could refer to either an environment variable, or a
Lisp variable. The priority order depends on the setting of
`eshell-prefer-lisp-variables'.

Its purpose is to call `eshell-parse-variable-ref', and then to
process any indices that come after the variable reference.