unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Philipp Stephani <p.stephani2@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 31552@debbugs.gnu.org
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	[thread overview]
Message-ID: <CAArVCkQQf1VaK+J6NWujOTyRuwaab0tBtN+cDMwvGotmzGzXsg@mail.gmail.com> (raw)
In-Reply-To: <87pnj1is18.fsf@gnus.org>

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	other threads:[~2019-10-13 16:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-22 13:41 bug#31552: 27.0.50; Document that Emacs in batch mode exits with exit status -1 on error Philipp
2018-05-22 17:16 ` Eli Zaretskii
2018-05-22 17:19   ` Philipp Stephani
2019-10-12 21:16     ` Lars Ingebrigtsen
2019-10-13 16:10       ` Philipp Stephani [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAArVCkQQf1VaK+J6NWujOTyRuwaab0tBtN+cDMwvGotmzGzXsg@mail.gmail.com \
    --to=p.stephani2@gmail.com \
    --cc=31552@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).