bug-bash
[Top][All Lists]
Advanced

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

Re: Bug? `set -e` inside functions inside `$(...)`


From: Chet Ramey
Subject: Re: Bug? `set -e` inside functions inside `$(...)`
Date: Fri, 4 Oct 2019 08:01:57 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

On 10/3/19 8:58 PM, John W wrote:
> Ah, got it sorted out.
> 
> Not a bug, of course (:
> 
> Bash, when not in posix mode, clears the '-e' flag in subshell environments.

You might be interested in the `inherit_errexit' option.

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



reply via email to

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