diff options
| author | Davide Masserut | 2023-08-29 22:33:48 +0200 |
|---|---|---|
| committer | Jim Porter | 2023-09-02 15:40:04 -0700 |
| commit | 3d08d0dd80a02419f8301b63bb5663710f4f8ee2 (patch) | |
| tree | ad7a0223d01f0c183926c52c6fe27bd2bff1f6fd /doc/misc | |
| parent | 6ae2b74ed20f7c96384ed67981405212d7e2bea2 (diff) | |
| download | emacs-3d08d0dd80a02419f8301b63bb5663710f4f8ee2.tar.gz emacs-3d08d0dd80a02419f8301b63bb5663710f4f8ee2.zip | |
Display the exit code if the last command failed in Eshell
* lisp/eshell/esh-io.el (eshell-last-command-status): Make
buffer-local.
* lisp/eshell/em-prompt.el (eshell-prompt-function): Insert the exit
code if last command failed.
* test/lisp/eshell/em-prompt-tests.el (em-prompt-test/after-failure):
New test.
(em-prompt-test/next-previous-prompt-1)
(em-prompt-test/forward-backward-matching-input-1): Add a failing
command to tests.
* doc/misc/eshell.texi (Invocation): Document change.
* etc/NEWS: Announce change (bug#65604).
Diffstat (limited to 'doc/misc')
| -rw-r--r-- | doc/misc/eshell.texi | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/misc/eshell.texi b/doc/misc/eshell.texi index 7a563bc794c..0ec90d0c159 100644 --- a/doc/misc/eshell.texi +++ b/doc/misc/eshell.texi | |||
| @@ -234,6 +234,9 @@ the foreground. That said, background processes invoked from Eshell | |||
| 234 | can be controlled the same way as any other background process in | 234 | can be controlled the same way as any other background process in |
| 235 | Emacs. | 235 | Emacs. |
| 236 | 236 | ||
| 237 | If a command exits abnormally, Eshell will display its exit code | ||
| 238 | in the next prompt. | ||
| 239 | |||
| 237 | @subsection Command form | 240 | @subsection Command form |
| 238 | Command form looks much the same as in other shells. A command | 241 | Command form looks much the same as in other shells. A command |
| 239 | consists of arguments separated by spaces; the first argument is the | 242 | consists of arguments separated by spaces; the first argument is the |