From: Lars Ingebrigtsen <larsi@gnus.org>
To: Philipp Stephani <p.stephani2@gmail.com>
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: Sat, 12 Oct 2019 23:16:03 +0200 [thread overview]
Message-ID: <87pnj1is18.fsf@gnus.org> (raw)
In-Reply-To: <CAArVCkSAXfOFAp5YzJrncapFE5Zc+XvChwEYrg6UQBmUh4jWWQ@mail.gmail.com> (Philipp Stephani's message of "Tue, 22 May 2018 19:19:54 +0200")
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
next prev parent reply other threads:[~2019-10-12 21:16 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 [this message]
2019-10-13 16:10 ` Philipp Stephani
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pnj1is18.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=31552@debbugs.gnu.org \
--cc=p.stephani2@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.