diff options
Diffstat (limited to 'shell/hush.c')
-rw-r--r-- | shell/hush.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c index a74fe47..5b2f188 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -2305,8 +2305,10 @@ static int run_list(struct pipe *pi) #endif #if ENABLE_HUSH_LOOPS if (rword == RES_WHILE) { - if (rcode) + if (rcode) { + rcode = 0; /* "while false; do...done" - exitcode 0 */ goto check_jobs_and_break; + } } if (rword == RES_UNTIL) { if (!rcode) { |