eshell-exit-success-p

eshell-exit-success-p is a compiled Lisp function in `esh-cmd.el'.

(eshell-exit-success-p)

Return non-nil if the last command was "successful".
For a bit of Lisp code, this means a return value of non-nil.
For an external command, it means an exit code of 0.