diff options
Diffstat (limited to 'shell/hush.c')
-rw-r--r-- | shell/hush.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/hush.c b/shell/hush.c index b9e763cc8..e2dc1e2d0 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -4219,7 +4219,7 @@ static struct pipe *parse_stream(char **pstring, | |||
4219 | /* (this makes bare "&" cmd a no-op. | 4219 | /* (this makes bare "&" cmd a no-op. |
4220 | * bash says: "syntax error near unexpected token '&'") */ | 4220 | * bash says: "syntax error near unexpected token '&'") */ |
4221 | if (pi->num_cmds == 0 | 4221 | if (pi->num_cmds == 0 |
4222 | IF_HAS_KEYWORDS( && pi->res_word == RES_NONE) | 4222 | IF_HAS_KEYWORDS(&& pi->res_word == RES_NONE) |
4223 | ) { | 4223 | ) { |
4224 | free_pipe_list(pi); | 4224 | free_pipe_list(pi); |
4225 | pi = NULL; | 4225 | pi = NULL; |
@@ -4372,7 +4372,7 @@ static struct pipe *parse_stream(char **pstring, | |||
4372 | debug_printf_parse("dest.o_assignment='%s'\n", assignment_flag[dest.o_assignment]); | 4372 | debug_printf_parse("dest.o_assignment='%s'\n", assignment_flag[dest.o_assignment]); |
4373 | /* Do we sit outside of any if's, loops or case's? */ | 4373 | /* Do we sit outside of any if's, loops or case's? */ |
4374 | if (!HAS_KEYWORDS | 4374 | if (!HAS_KEYWORDS |
4375 | IF_HAS_KEYWORDS(|| (ctx.ctx_res_w == RES_NONE && ctx.old_flag == 0)) | 4375 | IF_HAS_KEYWORDS(|| (ctx.ctx_res_w == RES_NONE && ctx.old_flag == 0)) |
4376 | ) { | 4376 | ) { |
4377 | o_free(&dest); | 4377 | o_free(&dest); |
4378 | #if !BB_MMU | 4378 | #if !BB_MMU |
@@ -8281,7 +8281,7 @@ static int FAST_FUNC builtin_exit(char **argv) | |||
8281 | * (if there are _stopped_ jobs, running ones don't count) | 8281 | * (if there are _stopped_ jobs, running ones don't count) |
8282 | * # exit | 8282 | * # exit |
8283 | * exit | 8283 | * exit |
8284 | # EEE (then bash exits) | 8284 | * EEE (then bash exits) |
8285 | * | 8285 | * |
8286 | * TODO: we can use G.exiting = -1 as indicator "last cmd was exit" | 8286 | * TODO: we can use G.exiting = -1 as indicator "last cmd was exit" |
8287 | */ | 8287 | */ |