Don't reset parents context when we encounter an terminator. Fixes
if true; then if true; then true; fi; fi
This commit is contained in:
parent
7526f035f4
commit
d24f878546
1
hush.c
1
hush.c
@ -1660,7 +1660,6 @@ int reserved_word(o_string *dest, struct p_context *ctx)
|
||||
old->child->group = ctx->list_head;
|
||||
*ctx = *old; /* physical copy */
|
||||
free(old);
|
||||
ctx->w=RES_NONE;
|
||||
}
|
||||
b_reset (dest);
|
||||
return 1;
|
||||
|
@ -1660,7 +1660,6 @@ int reserved_word(o_string *dest, struct p_context *ctx)
|
||||
old->child->group = ctx->list_head;
|
||||
*ctx = *old; /* physical copy */
|
||||
free(old);
|
||||
ctx->w=RES_NONE;
|
||||
}
|
||||
b_reset (dest);
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user