Function: eshell-add-command
eshell-add-command is a byte-compiled function defined in
esh-cmd.el.gz.
Signature
(eshell-add-command FORM &optional BACKGROUND)
Documentation
Add a command FORM to our list of known commands and return the new entry.
If non-nil, BACKGROUND indicates that this is a command running in the background. The result is a command entry in the form (BACKGROUND FORM PROCESSES), where PROCESSES is initially nil.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/esh-cmd.el.gz
;; Current command management
(defun eshell-add-command (form &optional background)
"Add a command FORM to our list of known commands and return the new entry.
If non-nil, BACKGROUND indicates that this is a command running
in the background. The result is a command entry in the
form (BACKGROUND FORM PROCESSES), where PROCESSES is initially
nil."
(cons (when background 'background)
(if background
(car (push (list form nil) eshell-background-commands))
(cl-assert (null eshell-foreground-command))
(setq eshell-foreground-command (list form nil)))))