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-w32-d24f878546806aa8fd50dc95fe3cc111ad10f92f.tar.gz
busybox-w32-d24f878546806aa8fd50dc95fe3cc111ad10f92f.tar.bz2
busybox-w32-d24f878546806aa8fd50dc95fe3cc111ad10f92f.zip
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)
1660 old->child->group = ctx->list_head; 1660 old->child->group = ctx->list_head;
1661 *ctx = *old; /* physical copy */ 1661 *ctx = *old; /* physical copy */
1662 free(old); 1662 free(old);
1663 ctx->w=RES_NONE;
1664 } 1663 }
1665 b_reset (dest); 1664 b_reset (dest);
1666 return 1; 1665 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)
1660 old->child->group = ctx->list_head; 1660 old->child->group = ctx->list_head;
1661 *ctx = *old; /* physical copy */ 1661 *ctx = *old; /* physical copy */
1662 free(old); 1662 free(old);
1663 ctx->w=RES_NONE;
1664 } 1663 }
1665 b_reset (dest); 1664 b_reset (dest);
1666 return 1; 1665 return 1;