Function: eshell-set-exit-info

eshell-set-exit-info is a byte-compiled function defined in esh-cmd.el.gz.

Signature

(eshell-set-exit-info STATUS &optional RESULT)

Documentation

Set the exit status and result for the last command.

STATUS is the process exit code (zero, if the command completed successfully). RESULT is the value of the last command.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/esh-cmd.el.gz
(defun eshell-set-exit-info (status &optional result)
  "Set the exit status and result for the last command.
STATUS is the process exit code (zero, if the command completed
successfully).  RESULT is the value of the last command."
  (when status
    (setq eshell-last-command-status status))
  (setq eshell-last-command-result result))