[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#31552: 27.0.50; Document that Emacs in batch mode exits with exit st
From: |
Lars Ingebrigtsen |
Subject: |
bug#31552: 27.0.50; Document that Emacs in batch mode exits with exit status -1 on error |
Date: |
Sat, 12 Oct 2019 23:16:03 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Philipp Stephani <p.stephani2@gmail.com> writes:
> Eli Zaretskii <eliz@gnu.org> schrieb am Di., 22. Mai 2018 um 19:17 Uhr:
>
> > From: Philipp <p.stephani2@gmail.com>
> > Date: Tue, 22 May 2018 15:41:25 +0200
> >
> > I haven't found any documentation in the Lisp reference manual that the
> > exit status of an Emacs process exiting due to a nonlocal exit is -1 by
> > default (adjusted to 255 by Bash). This should be documented, for users
> > that run Emacs in batch mode.
>
> I'm not sure I understand what you are describing. Can you show a
> reproducer?
>
> $ src/emacs -Q -batch -eval '(error "foo")' ; echo $?
>
> foo
>
> 255
I've now added something like this to the Emacs 27 manual.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#31552: 27.0.50; Document that Emacs in batch mode exits with exit status -1 on error,
Lars Ingebrigtsen <=