Skip to content

Commit

Permalink
Fix exporting vars in subshells
Browse files Browse the repository at this point in the history
  • Loading branch information
citrus-it committed Jan 4, 2021
1 parent 585a0f0 commit c17b7bb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/cmd/ksh93/sh/subshell.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c17b7bb

Please sign in to comment.