aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-10-12 23:15:43 +0200
committerLars Ingebrigtsen2019-10-12 23:15:43 +0200
commit6c677a101d16cffd1e59acf090c4769561f82a53 (patch)
tree0e25c97c932bd344a2b5ef0baa279660e3c6701a
parent6bc938712fa5eb10b383d71c7a76572e99a6ab91 (diff)
downloademacs-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.texi9
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
2595This variable is non-@code{nil} when Emacs is running in batch mode. 2595This variable is non-@code{nil} when Emacs is running in batch mode.
2596@end defvar 2596@end defvar
2597 2597
2598If Emacs exits due to signalling an error in batch mode, the exit
2599status of the Emacs command is non-zero:
2600
2601@example
2602$ emacs -Q --batch --eval '(error "foo")'; echo $?
2603foo
2604255
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