[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bash-3.2 Official Patch 20
From: |
Chet Ramey |
Subject: |
Re: Bash-3.2 Official Patch 20 |
Date: |
Sat, 25 Aug 2007 15:15:34 -0400 |
User-agent: |
Thunderbird 2.0.0.6 (Macintosh/20070728) |
Mike Frysinger wrote:
>> Bug-Description:
>>>
>>> In some cases of error processing, a jump back to the top-level
>>> processing loop from a builtin command would leave the shell in an
>>> inconsistent state.
>> this appears to break handling of read only variables in source statements
>
> this may also just be a bug fix, i just want confirmation before we go
> changing things :)
I've considered it, and concluded that the post-patch 20 behavior is the
right thing. If a variable assignment error occurs during execution of
a builtin, it should cause the builtin to return with a non-failure status
(unless you're running a non-interactive shell in posix mode, in which
case Posix says the whole shell should exit).
I do see what Gentoo is trying to do, and I'll try to devise a workaround
to accommodate both needs.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Live Strong. No day but today.
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/