help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] Option execfail does not work in subshells


From: Chet Ramey
Subject: Re: [Help-bash] Option execfail does not work in subshells
Date: Wed, 9 Aug 2017 06:56:54 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

On 8/8/17 10:04 AM, R. Diez wrote:
> 
>> `execfail' only works when the shell is interactive.  Subshells are
>> not considered interactive shells.
> 
> But that is not what the documentation says:

I had to look at the source. Subshells are specifically exempted from the
execfail settings. It's been this way for at least 24 years, so the exact
reason is lost to time.

Chet

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



reply via email to

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