Re: about one feature in V4.2 against V4.1

2013-01-16 Thread douxin

On 01/16/2013 01:59 AM, Dan Douglas wrote:

Oops nevermind, I see the issue now. Couldn't reproduce here either. Neither 
with compat modes nor the real versions.

Thanks for your help any way
it seems to remain a problem



Re: about one feature in V4.2 against V4.1

2013-01-16 Thread Chet Ramey
On 1/15/13 11:30 AM, DJ Mills wrote:

> I believe that's referring to var=value command, as in the syntax to export
> a variable into "command"s environment.
> 
> readonly a=3
> a=2 echo foo

I believe this is the bug:

set -o posix
readonly a=0
a=1 command : 2>/dev/null # or use true in place of command :
readonly b=0
echo after

bash-4.1 exited without getting to the `echo after', which is clearly
wrong.  The original version came from FreeBSD's sh regression test suite.
I thought the change in bash-4.2 fixed the problem, but I now think
another change masked the problem without fixing it.  (Try it, it's still
broken in bash-4.2.)

I've fixed the problem and the fix will be in the next release.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/