diff options
Diffstat (limited to 'shell/lash_unused.c')
-rw-r--r-- | shell/lash_unused.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/shell/lash_unused.c b/shell/lash_unused.c index 107ce88f6..513918962 100644 --- a/shell/lash_unused.c +++ b/shell/lash_unused.c | |||
@@ -950,8 +950,12 @@ static int parse_command(char **command_ptr, struct job *job, int *inbg) | |||
950 | *buf++ = '\\'; | 950 | *buf++ = '\\'; |
951 | *buf++ = '\\'; | 951 | *buf++ = '\\'; |
952 | } | 952 | } |
953 | } else if (*src == '*' || *src == '?' || *src == '[' || | 953 | } else |
954 | *src == ']') *buf++ = '\\'; | 954 | if (*src == '*' || *src == '?' |
955 | || *src == '[' || *src == ']' | ||
956 | ) { | ||
957 | *buf++ = '\\'; | ||
958 | } | ||
955 | *buf++ = *src; | 959 | *buf++ = *src; |
956 | } else if (isspace(*src)) { | 960 | } else if (isspace(*src)) { |
957 | if (*prog->argv[argc_l] || (flag & LASH_OPT_SAW_QUOTE)) { | 961 | if (*prog->argv[argc_l] || (flag & LASH_OPT_SAW_QUOTE)) { |
@@ -1365,8 +1369,9 @@ static int busy_loop(FILE *input) | |||
1365 | continue; | 1369 | continue; |
1366 | } | 1370 | } |
1367 | 1371 | ||
1368 | if (!parse_command(&next_command, &newjob, &inbg) && | 1372 | if (!parse_command(&next_command, &newjob, &inbg) |
1369 | newjob.num_progs) { | 1373 | && newjob.num_progs |
1374 | ) { | ||
1370 | int pipefds[2] = { -1, -1 }; | 1375 | int pipefds[2] = { -1, -1 }; |
1371 | debug_printf("job=%p fed to run_command by busy_loop()'\n", | 1376 | debug_printf("job=%p fed to run_command by busy_loop()'\n", |
1372 | &newjob); | 1377 | &newjob); |