Re: . (source) builtin behavior changed when commands are in {} braces
From:
Chet Ramey
Subject:
Re: . (source) builtin behavior changed when commands are in {} braces
Date:
Fri, 15 Aug 2008 16:51:25 -0400
User-agent:
Thunderbird 2.0.0.16 (Macintosh/20080707)
Roman Rakus wrote:
In previous version (3.0) bash continue after {} braces.
For example:
{
readonly a
a=10
} || :
echo hello
In bash 3.2 we've got error message about readonly variable, but "hello"
is not printed. Is this right behavior or bug?
I'm not sure what changes you've made to the red hat version of bash, but
bash-3.2.17 and bash-3.2.39 (the two versions I happen to have on this
machine) both print `hello' after the error message. The top_level_cleanup
function and the calls to it were introduced in bash-3.2 patch 20, so
the behavior appears to be consistent before and after the patch.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/