diff options
Diffstat (limited to 'shell/hush.c')
-rw-r--r-- | shell/hush.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c index ba3e2c3f0..b6e49db99 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -4069,11 +4069,15 @@ static void done_pipe(struct parse_context *ctx, pipe_style type) | |||
4069 | * RES_NONE case is for "for a in; do ..." (empty IN set) | 4069 | * RES_NONE case is for "for a in; do ..." (empty IN set) |
4070 | * and other cases to work. */ | 4070 | * and other cases to work. */ |
4071 | if (not_null | 4071 | if (not_null |
4072 | #if HAS_KEYWORDS | 4072 | #if ENABLE_HUSH_IF |
4073 | || ctx->ctx_res_w == RES_FI | 4073 | || ctx->ctx_res_w == RES_FI |
4074 | #endif | ||
4075 | #if ENABLE_HUSH_LOOPS | ||
4074 | || ctx->ctx_res_w == RES_DONE | 4076 | || ctx->ctx_res_w == RES_DONE |
4075 | || ctx->ctx_res_w == RES_FOR | 4077 | || ctx->ctx_res_w == RES_FOR |
4076 | || ctx->ctx_res_w == RES_IN | 4078 | || ctx->ctx_res_w == RES_IN |
4079 | #endif | ||
4080 | #if ENABLE_HUSH_CASE | ||
4077 | || ctx->ctx_res_w == RES_ESAC | 4081 | || ctx->ctx_res_w == RES_ESAC |
4078 | #endif | 4082 | #endif |
4079 | ) { | 4083 | ) { |