From: Robert Pluim <rpluim@gmail.com>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: emacs-devel@gnu.org
Subject: Re: master 83a6224: make-dist: check exit statuses more carefully
Date: Thu, 12 Apr 2018 10:07:36 +0200 [thread overview]
Message-ID: <878t9srgon.fsf@gmail.com> (raw)
In-Reply-To: <08651245-b75c-1d62-3c0e-7cefd504cecb@cs.ucla.edu> (Paul Eggert's message of "Wed, 11 Apr 2018 17:19:41 -0700")
Paul Eggert <eggert@cs.ucla.edu> writes:
> On 04/10/2018 02:04 AM, Robert Pluim wrote:
>> Would 'set -e' not be easier?
>
> I've never trusted 'set -e' for anything other than simpleminded
> debugging, because set -e is a global setting (so it's inflexible) and
> it doesn't always work (so it's unreliable). For an example of the
> latter:
>
> set -e; { false; true; } && echo x
>
> This succeeds and outputs "x" even though the "false" command
> failed. (POSIX requires this and it's longstanding behavior.)
Youʼre right. POSIX isnʼt even ambiguous about it.
Robert
next prev parent reply other threads:[~2018-04-12 8:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20180409203519.16812.87351@vcs0.savannah.gnu.org>
[not found] ` <20180409203521.3506A20450@vcs0.savannah.gnu.org>
2018-04-10 9:04 ` master 83a6224: make-dist: check exit statuses more carefully Robert Pluim
2018-04-12 0:19 ` Paul Eggert
2018-04-12 8:07 ` Robert Pluim [this message]
2018-04-11 19:40 ` Glenn Morris
2018-04-12 0:07 ` Paul Eggert
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=878t9srgon.fsf@gmail.com \
--to=rpluim@gmail.com \
--cc=eggert@cs.ucla.edu \
--cc=emacs-devel@gnu.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 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.