diff --git a/src/cmd/ksh93/sh/subshell.c b/src/cmd/ksh93/sh/subshell.c index acaf016a8a53..17a0b9509892 100644 --- a/src/cmd/ksh93/sh/subshell.c +++ b/src/cmd/ksh93/sh/subshell.c @@ -260,9 +260,6 @@ Namval_t *sh_assignok(register Namval_t *np,int add) shp = sp->shp; dp = shp->var_tree; - /* don't bother to save if in newer scope */ - if(sp->var!=shp->var_tree && sp->var!=shp->var_base && shp->last_root==shp->var_tree) - return(np); if((ap=nv_arrayptr(np)) && (mp=nv_opensub(np))) { shp->last_root = ap->table;