Don't reset parents context when we encounter an terminator. Fixes
authorMatt Kraai <kraai@debian.org>
Fri, 4 May 2001 21:20:20 +0000 (21:20 -0000)
committerMatt Kraai <kraai@debian.org>
Fri, 4 May 2001 21:20:20 +0000 (21:20 -0000)
if true; then if true; then true; fi; fi

hush.c
shell/hush.c

diff --git a/hush.c b/hush.c
index 71e40489dd8699d4322c30b5edefffdd01ad1ec1..976fa3805d1c3c80be15a1b7846b10800ae0f6aa 100644 (file)
--- a/hush.c
+++ b/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;
index 71e40489dd8699d4322c30b5edefffdd01ad1ec1..976fa3805d1c3c80be15a1b7846b10800ae0f6aa 100644 (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;