aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/hush.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 8f4cc9780..6d31cdca5 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -1557,7 +1557,7 @@ static int run_list_real(struct pipe *pi)
1557 if (rmode == RES_THEN || rmode == RES_ELSE) if_code = next_if_code; 1557 if (rmode == RES_THEN || rmode == RES_ELSE) if_code = next_if_code;
1558 if (rmode == RES_THEN && if_code) continue; 1558 if (rmode == RES_THEN && if_code) continue;
1559 if (rmode == RES_ELSE && !if_code) continue; 1559 if (rmode == RES_ELSE && !if_code) continue;
1560 if (rmode == RES_ELIF && !if_code) continue; 1560 if (rmode == RES_ELIF && !if_code) break;
1561 if (rmode == RES_FOR && pi->num_progs) { 1561 if (rmode == RES_FOR && pi->num_progs) {
1562 if (!list) { 1562 if (!list) {
1563 /* if no variable values after "in" we skip "for" */ 1563 /* if no variable values after "in" we skip "for" */