[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Source builtin and error handling
From: |
Chet Ramey |
Subject: |
Re: [Help-bash] Source builtin and error handling |
Date: |
Wed, 2 Dec 2015 11:26:32 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 |
On 11/30/15 3:58 PM, Marcin Świgoń wrote:
> Dear bash experts,
>
> Today I came across a strange situation when using set -e, source
> builtin and error handling.
Thanks for the report. You found a bug in the handling of nested builtins
that should ignore the errexit option. Bash needs to restore the state
better around calls to builtins that need to have that setting in place
throughout their execution (like source). This will be fixed in the next
release of bash.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Help-bash] Source builtin and error handling,
Chet Ramey <=