bug-bash
[Top][All Lists]
Advanced

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

Re: Unexpected behavior from combination of errexit and execfail


From: Chet Ramey
Subject: Re: Unexpected behavior from combination of errexit and execfail
Date: Fri, 25 Sep 2026 12:14:11 -0400
User-agent: Mozilla Thunderbird

On 9/24/26 11:10 PM, Martin D Kealey wrote:
The significant change isn't any combination of «set -e», «set -o errexit»
and/or «shopt -s execfail», but rather the insertion of «exec».

Well, indirectly I suppose. It's `execfail' that makes the difference, and
that option is only relevant to the behavior of `exec'.

The "exit on failure" is one of the minor differences between an
interactive shell and a non-interactive one

This is the behavior that `execfail' modifies.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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