blob: 9970b4d8f9309bf8c001b5f1c9cbf38b95756cb2 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001Upstream-Status: Inappropriate [embedded specific]
2
Brad Bishop316dfdd2018-06-25 12:45:53 -04003Index: execute_cmd.c
4===================================================================
5--- execute_cmd.c.orig
6+++ execute_cmd.c
7@@ -2459,7 +2459,11 @@ execute_pipeline (command, asynchronous,
Patrick Williamsc124f4f2015-09-15 14:41:29 -05008 /* 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 Bishop316dfdd2018-06-25 12:45:53 -040018 lstdin = move_to_high_fd (0, 1, -1);
Patrick Williamsc124f4f2015-09-15 14:41:29 -050019 if (lstdin > 0)