Function: eshell-read-command

eshell-read-command is a byte-compiled function defined in eshell.el.gz.

Signature

(eshell-read-command &optional PROMPT)

Documentation

Read an Eshell command from the minibuffer, prompting with PROMPT.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/eshell.el.gz
(defun eshell-read-command (&optional prompt)
  "Read an Eshell command from the minibuffer, prompting with PROMPT."
  (let ((prompt (or prompt "Emacs shell command: "))
        (eshell-non-interactive-p t))
    ;; Enable `eshell-mode' only in this minibuffer.
    (minibuffer-with-setup-hook (lambda ()
                                  (eshell-mode)
                                  (eshell-command-mode +1))
      (read-from-minibuffer prompt))))