diff options
author | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-05-04 21:20:20 +0000 |
---|---|---|
committer | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-05-04 21:20:20 +0000 |
commit | 39f3e3fe96988291fd9c2a66b8adec16c2a0cf1d (patch) | |
tree | 5bdc487480e7b798ae79f1ec4a67027d8e6509b7 /shell | |
parent | 28d4e1b5326572d55c53ab5853cfe56d59e7de29 (diff) | |
download | busybox-w32-39f3e3fe96988291fd9c2a66b8adec16c2a0cf1d.tar.gz busybox-w32-39f3e3fe96988291fd9c2a66b8adec16c2a0cf1d.tar.bz2 busybox-w32-39f3e3fe96988291fd9c2a66b8adec16c2a0cf1d.zip |
Don't reset parents context when we encounter an terminator. Fixes
if true; then if true; then true; fi; fi
git-svn-id: svn://busybox.net/trunk/busybox@2534 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell')
-rw-r--r-- | shell/hush.c | 1 |
1 files changed, 0 insertions, 1 deletions
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; |