Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | Upstream-Status: Inappropriate [embedded specific] |
| 2 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame^] | 3 | Index: execute_cmd.c |
| 4 | =================================================================== |
| 5 | --- execute_cmd.c.orig |
| 6 | +++ execute_cmd.c |
| 7 | @@ -2459,7 +2459,11 @@ execute_pipeline (command, asynchronous, |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 8 | /* If the `lastpipe' option is set with shopt, and job control is not |
| 9 | enabled, execute the last element of non-async pipelines in the |
| 10 | current shell environment. */ |
| 11 | - if (lastpipe_opt && job_control == 0 && asynchronous == 0 && pipe_out == NO_PIPE && prev > 0) |
| 12 | + if (lastpipe_opt && |
| 13 | +#if defined(JOB_CONTROL) |
| 14 | + job_control == 0 && |
| 15 | +#endif |
| 16 | + asynchronous == 0 && pipe_out == NO_PIPE && prev > 0) |
| 17 | { |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame^] | 18 | lstdin = move_to_high_fd (0, 1, -1); |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 19 | if (lstdin > 0) |