diff options
| author | Lars Ingebrigtsen | 2019-10-12 23:15:43 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-10-12 23:15:43 +0200 |
| commit | 6c677a101d16cffd1e59acf090c4769561f82a53 (patch) | |
| tree | 0e25c97c932bd344a2b5ef0baa279660e3c6701a | |
| parent | 6bc938712fa5eb10b383d71c7a76572e99a6ab91 (diff) | |
| download | emacs-6c677a101d16cffd1e59acf090c4769561f82a53.tar.gz emacs-6c677a101d16cffd1e59acf090c4769561f82a53.zip | |
Mention the Emacs exit code in batch mode
* doc/lispref/os.texi (Batch Mode): Mention what the exit code is
if an error is signalled (bug#31552).
| -rw-r--r-- | doc/lispref/os.texi | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi index 912d464b49b..93551cab0e5 100644 --- a/doc/lispref/os.texi +++ b/doc/lispref/os.texi | |||
| @@ -2595,6 +2595,15 @@ if it is non-@code{nil}; this can be overridden by binding | |||
| 2595 | This variable is non-@code{nil} when Emacs is running in batch mode. | 2595 | This variable is non-@code{nil} when Emacs is running in batch mode. |
| 2596 | @end defvar | 2596 | @end defvar |
| 2597 | 2597 | ||
| 2598 | If Emacs exits due to signalling an error in batch mode, the exit | ||
| 2599 | status of the Emacs command is non-zero: | ||
| 2600 | |||
| 2601 | @example | ||
| 2602 | $ emacs -Q --batch --eval '(error "foo")'; echo $? | ||
| 2603 | foo | ||
| 2604 | 255 | ||
| 2605 | @end example | ||
| 2606 | |||
| 2598 | @node Session Management | 2607 | @node Session Management |
| 2599 | @section Session Management | 2608 | @section Session Management |
| 2600 | @cindex session manager | 2609 | @cindex session manager |