components/ksh93/patches/250-22561374.patch
changeset 5615 44d8b21d95e4
equal deleted inserted replaced
5614:12b0db03649b 5615:44d8b21d95e4
       
     1 This fix has been developed inhouse. Patch has been submitted upstream but 
       
     2 has not been accepted yet. The details can be found at
       
     3 https://github.com/att/ast/issues/7
       
     4 --- INIT.2012-08-01.old/src/cmd/ksh93/sh/subshell.c	2016-03-01 04:01:06.513890578 -0800
       
     5 +++ INIT.2012-08-01/src/cmd/ksh93/shsubshell.c	2016-03-01 04:02:43.617872391 -0800
       
     6 @@ -260,9 +260,6 @@
       
     7  	shp = sp->shp;
       
     8  	dp = shp->var_tree;
       
     9  
       
    10 -	/* don't bother to save if in newer scope */
       
    11 -	if(sp->var!=shp->var_tree && sp->var!=shp->var_base && shp->last_root==shp->var_tree)
       
    12 -		return(np);
       
    13  	if((ap=nv_arrayptr(np)) && (mp=nv_opensub(np)))
       
    14  	{
       
    15  		shp->last_root = ap->table;