Function: eshell-plain-command

eshell-plain-command is a byte-compiled function defined in esh-cmd.el.gz.

Signature

(eshell-plain-command COMMAND ARGS)

Documentation

Insert output from a plain COMMAND, using ARGS.

COMMAND may result in either a Lisp function being executed by name, or an external command.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/esh-cmd.el.gz
(defun eshell-plain-command (command args)
  "Insert output from a plain COMMAND, using ARGS.
COMMAND may result in either a Lisp function being executed by name,
or an external command."
  (let* ((esym (eshell-find-alias-function command))
	 (sym (or esym (intern-soft command))))
    (if (and sym (fboundp sym)
	     (or esym eshell-prefer-lisp-functions
		 (not (eshell-search-path command))))
	(eshell-lisp-command sym args)
      (eshell-external-command command args))))