eshell-last-command-status

eshell-last-command-status is a variable defined in `esh-io.el'.
Its value is
0


Documentation:
The exit code from the last command. 0 if successful.