Function: eshell-term-as-value
eshell-term-as-value is a byte-compiled function defined in
esh-cmd.el.gz.
Signature
(eshell-term-as-value TERM)
Documentation
Convert an Eshell TERM to take its value.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/esh-cmd.el.gz
(defun eshell-term-as-value (term)
"Convert an Eshell TERM to take its value."
(cond
((eq (car-safe term) 'eshell-as-subcommand) ; {x} -> ${x}
`(eshell-convert (eshell-command-to-value ,term)))
((eq (car-safe term) 'eshell-lisp-command) ; (x) -> $(x)
`(eshell-command-to-value ,term))
(t term)))