components/ksh93/patches/085-CR7046434.patch
changeset 5129 5431772f7235
parent 5128 218234c0062c
child 5130 c6338b8f183f
equal deleted inserted replaced
5128:218234c0062c 5129:5431772f7235
     1 diff -rupN INIT.2011-02-08/src/cmd/ksh93/sh/subshell.c INIT.2011-02-08.clean/src/cmd/ksh93/sh/subshell.c
       
     2 --- INIT.2011-02-08/src/cmd/ksh93/sh/subshell.c	2012-05-01 10:06:04.621554775 -0700
       
     3 +++ INIT.2011-02-08.clean/src/cmd/ksh93/sh/subshell.c	2012-05-01 10:05:25.139965959 -0700
       
     4 @@ -241,9 +241,6 @@ Namval_t *sh_assignok(register Namval_t 
       
     5  	/* don't bother with this */
       
     6  	if(!sp->shpwd || np==SH_LEVELNOD || np==L_ARGNOD || np==SH_SUBSCRNOD || np==SH_NAMENOD)
       
     7  		return(np);
       
     8 -	/* don't bother to save if in newer scope */
       
     9 -	if(sp->var!=shp->var_tree && shp->last_root==shp->var_tree)
       
    10 -		return(np);
       
    11  	if((ap=nv_arrayptr(np)) && (mp=nv_opensub(np)))
       
    12  	{
       
    13  		shp->last_root = ap->table;