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: Paul Eggert
Subject: Re: master 83a6224: make-dist: check exit statuses more carefully
Date: Wed, 11 Apr 2018 17:19:41 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0

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.)




reply via email to

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