Function: eshell-invoke-directly-p

eshell-invoke-directly-p is a byte-compiled function defined in esh-cmd.el.gz.

Signature

(eshell-invoke-directly-p COMMAND)

Documentation

Determine whether the given COMMAND can be invoked directly.

COMMAND should be a top-level Eshell command in parsed form, as produced by eshell-parse-command.

Aliases

eshell-invoke-directly (obsolete since 30.1)

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/esh-cmd.el.gz
(defun eshell-invoke-directly-p (command)
  "Determine whether the given COMMAND can be invoked directly.
COMMAND should be a top-level Eshell command in parsed form, as
produced by `eshell-parse-command'."
  (pcase command
    (`(eshell-commands (progn ,_ (unwind-protect (progn ,base) . ,_)))
     (eshell--invoke-command-directly-p base))))