]> git.eshelyaron.com Git - emacs.git/commit
Treat non-erroring lisp call as successful eshell command (Bug#26161)
authorGeorge D. Plymale II <georgedp@orbitalimpact.com>
Thu, 20 Apr 2017 18:05:11 +0000 (14:05 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Fri, 21 Apr 2017 03:03:10 +0000 (23:03 -0400)
commite8875bcbe067ea020dba95530ec4e9485942babd
treea52161f7387a57035a231d0d0624eac14550baf9
parenta6b375ba4bfc9453abc428dcb73e65bfcf61b794
Treat non-erroring lisp call as successful eshell command (Bug#26161)

This lets a compound command like 'cd .. && echo ok' print 'ok',
similar to how most other shells behave.

* lisp/eshell/esh-cmd.el (eshell-exit-success-p): Only check if the
last exit code was zero, rather than first checking whether the last
command returned nil.
(eshell-exec-lisp): Set `eshell-last-command-status' to 1 on error.

Copyright-paperwork-exempt: yes
lisp/eshell/esh-cmd.el