Function: eshell-named-command
eshell-named-command is a byte-compiled function defined in
esh-cmd.el.gz.
Signature
(eshell-named-command COMMAND &optional ARGS)
Documentation
Insert output from a plain COMMAND, using ARGS.
COMMAND may result in an alias being executed, or a plain command.
Aliases
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/esh-cmd.el.gz
(defun eshell-named-command (command &optional args)
"Insert output from a plain COMMAND, using ARGS.
COMMAND may result in an alias being executed, or a plain command."
(setq eshell-last-arguments args
eshell-last-command-name (eshell-stringify command))
(run-hook-with-args 'eshell-prepare-command-hook)
(cl-assert (stringp eshell-last-command-name))
(if eshell-last-command-name
(or (run-hook-with-args-until-success
'eshell-named-command-hook eshell-last-command-name
eshell-last-arguments)
(eshell-plain-command eshell-last-command-name
eshell-last-arguments))))