summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/bash/bash/execute_cmd.patch
blob: 9970b4d8f9309bf8c001b5f1c9cbf38b95756cb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Upstream-Status: Inappropriate [embedded specific]

Index: execute_cmd.c
===================================================================
--- execute_cmd.c.orig
+++ execute_cmd.c
@@ -2459,7 +2459,11 @@ execute_pipeline (command, asynchronous,
   /* If the `lastpipe' option is set with shopt, and job control is not
      enabled, execute the last element of non-async pipelines in the
      current shell environment. */
-  if (lastpipe_opt && job_control == 0 && asynchronous == 0 && pipe_out == NO_PIPE && prev > 0)
+  if (lastpipe_opt && 
+#if defined(JOB_CONTROL)
+		job_control == 0 && 
+#endif
+		asynchronous == 0 && pipe_out == NO_PIPE && prev > 0)
     {
       lstdin = move_to_high_fd (0, 1, -1);
       if (lstdin > 0)