cc:  [email protected]
Subject: Re: Re: [ast-users] Regression in += operator
--------


> It's intentional. It's valid to export this to a command's environment. It 
> works
>  in zsh, bash (git), and has worked previously at some point in ksh93.
> 

It worked in ksh93u but it was leaving side effects and this violated
the standard.

When I run this in bash, I get

$ bash -c 'typeset -i x=1; x+=1 command eval echo \$x'
1


If I run
$ ksh93u -c 'typeset -i x=1; x+=1 command eval echo \$x;echo $x'
2
2

which is not correct since regular command should not leave side effects
in the current environment.

I haven't yet decided how to resolved this.

David Korn
[email protected]
_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users

Reply via email to