Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11940

Re: [Help-bash] Source builtin and error handling

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: [Help-bash] Source builtin and error handling
Date 2015-12-02 11:26 -0500
Message-ID <mailman.1169.1449073605.31583.bug-bash@gnu.org> (permalink)
References <CAE3yzKFcKyZ9iX7y7=e+YSzQQfi01EGogv_LuNvRA-=dk2gH+w@mail.gmail.com>

Show all headers | View raw


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    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: [Help-bash] Source builtin and error handling Chet Ramey <chet.ramey@case.edu> - 2015-12-02 11:26 -0500

csiph-web