bug-gnu-emacs
[Top][All Lists]
Advanced

[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: Philipp Stephani
Subject: bug#31552: 27.0.50; Document that Emacs in batch mode exits with exit status -1 on error
Date: Sun, 13 Oct 2019 18:10:00 +0200

Am Sa., 12. Okt. 2019 um 23:16 Uhr schrieb Lars Ingebrigtsen <larsi@gnus.org>:
>
> 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.

Thanks.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]