aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2001-05-04 21:20:20 +0000
committerMatt Kraai <kraai@debian.org>2001-05-04 21:20:20 +0000
commitd24f878546806aa8fd50dc95fe3cc111ad10f92f (patch)
tree5bdc487480e7b798ae79f1ec4a67027d8e6509b7
parent7526f035f4feea48d4c686a2c5c484c4175976f9 (diff)
downloadbusybox-d24f878546806aa8fd50dc95fe3cc111ad10f92f.tar.gz
Don't reset parents context when we encounter an terminator. Fixes
if true; then if true; then true; fi; fi
-rw-r--r--hush.c1
-rw-r--r--shell/hush.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/hush.c b/hush.c
index 71e40489d..976fa3805 100644
--- 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;
diff --git a/shell/hush.c b/shell/hush.c
index 71e40489d..976fa3805 100644
--- a/shell/hush.c
+++ b/shell/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;