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:
Matt Kraai 2001-05-04 21:20:20 +00:00
parent 7526f035f4
commit d24f878546
2 changed files with 0 additions and 2 deletions

1
hush.c
View File

@ -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;

View File

@ -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;