emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 83a6224: make-dist: check exit statuses more carefully


From: Robert Pluim
Subject: Re: master 83a6224: make-dist: check exit statuses more carefully
Date: Thu, 12 Apr 2018 10:07:36 +0200

Paul Eggert <address@hidden> 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



reply via email to

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