GNU bug report logs - #31552
27.0.50; Document that Emacs in batch mode exits with exit status -1 on error

Previous Next

Package: emacs;

Reported by: Philipp <p.stephani2 <at> gmail.com>

Date: Tue, 22 May 2018 13:42:01 UTC

Severity: minor

Tags: fixed

Found in version 27.0.50

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 31552 <at> debbugs.gnu.org (full text, mbox):

From: Philipp Stephani <p.stephani2 <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 31552 <at> debbugs.gnu.org
Subject: Re: bug#31552: 27.0.50; Document that Emacs in batch mode exits with
 exit status -1 on error
Date: Tue, 22 May 2018 19:19:54 +0200
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> schrieb am Di., 22. Mai 2018 um 19:17 Uhr:

> > From: Philipp <p.stephani2 <at> 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
[Message part 2 (text/html, inline)]

This bug report was last modified 5 years and 283 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.