Variable: eshell-last-command-status
eshell-last-command-status is a buffer-local variable defined in
esh-io.el.gz.
Documentation
The exit code from the last command. 0 if successful.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/esh-io.el.gz
(defvar-local eshell-last-command-status 0
"The exit code from the last command. 0 if successful.")