Function: eshell-external-command

eshell-external-command is a byte-compiled function defined in esh-ext.el.gz.

Signature

(eshell-external-command COMMAND ARGS)

Documentation

Insert output from an external COMMAND, using ARGS.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/esh-ext.el.gz
(defun eshell-external-command (command args)
  "Insert output from an external COMMAND, using ARGS."
  (cond
   ((and eshell-explicit-remote-commands
         (file-remote-p command))
    (eshell-remote-command command args))
   ((and eshell-explicit-remote-commands
         (string-prefix-p eshell--local-prefix command))
    (eshell-remote-command
     (substring command (length eshell--local-prefix)) args))
   (t
    (eshell-connection-local-command command args))))