summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenis Vlasenko2009-04-14 08:06:59 +0000
committerDenis Vlasenko2009-04-14 08:06:59 +0000
commit7f9593753a194c3d3db79f803f68d2ebaf98cd12 (patch)
tree53248c85f42e075a371bb71b9e066f398e6baa50 /shell
parentb024f8da8fad7ffd9bc5e63ed947bf6bd35fac3e (diff)
downloadbusybox-7f9593753a194c3d3db79f803f68d2ebaf98cd12.zip
busybox-7f9593753a194c3d3db79f803f68d2ebaf98cd12.tar.gz
randomconfig fixes
Diffstat (limited to 'shell')
-rw-r--r--shell/hush.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c
index ba3e2c3..b6e49db 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -4069,11 +4069,15 @@ static void done_pipe(struct parse_context *ctx, pipe_style type)
* RES_NONE case is for "for a in; do ..." (empty IN set)
* and other cases to work. */
if (not_null
-#if HAS_KEYWORDS
+#if ENABLE_HUSH_IF
|| ctx->ctx_res_w == RES_FI
+#endif
+#if ENABLE_HUSH_LOOPS
|| ctx->ctx_res_w == RES_DONE
|| ctx->ctx_res_w == RES_FOR
|| ctx->ctx_res_w == RES_IN
+#endif
+#if ENABLE_HUSH_CASE
|| ctx->ctx_res_w == RES_ESAC
#endif
) {