Function: eshell-as-subcommand
eshell-as-subcommand is a macro defined in esh-cmd.el.gz.
Signature
(eshell-as-subcommand COMMAND)
Documentation
Execute COMMAND using a temp buffer.
This is used so that certain Lisp commands, such as cd, when
executed in a subshell, do not disturb the environment of the main
Eshell buffer.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/esh-cmd.el.gz
(defmacro eshell-as-subcommand (command)
"Execute COMMAND using a temp buffer.
This is used so that certain Lisp commands, such as `cd', when
executed in a subshell, do not disturb the environment of the main
Eshell buffer."
`(let ,eshell-subcommand-bindings
,command))