diff options
Diffstat (limited to 'meta/recipes-extended/bash/bash/execute_cmd.patch')
-rw-r--r-- | meta/recipes-extended/bash/bash/execute_cmd.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/recipes-extended/bash/bash/execute_cmd.patch b/meta/recipes-extended/bash/bash/execute_cmd.patch new file mode 100644 index 0000000000..81f8f0a9cd --- /dev/null +++ b/meta/recipes-extended/bash/bash/execute_cmd.patch | |||
@@ -0,0 +1,17 @@ | |||
1 | Upstream-Status: Inappropriate [embedded specific] | ||
2 | |||
3 | --- execute_cmd.c.orig Fri Jun 3 13:34:42 2011 | ||
4 | +++ execute_cmd.c Fri Jun 3 13:36:41 2011 | ||
5 | @@ -2202,7 +2202,11 @@ | ||
6 | /* If the `lastpipe' option is set with shopt, and job control is not | ||
7 | enabled, execute the last element of non-async pipelines in the | ||
8 | current shell environment. */ | ||
9 | - if (lastpipe_opt && job_control == 0 && asynchronous == 0 && pipe_out == NO_PIPE && prev > 0) | ||
10 | + if (lastpipe_opt && | ||
11 | +#if defined(JOB_CONTROL) | ||
12 | + job_control == 0 && | ||
13 | +#endif | ||
14 | + asynchronous == 0 && pipe_out == NO_PIPE && prev > 0) | ||
15 | { | ||
16 | lstdin = move_to_high_fd (0, 0, 255); | ||
17 | if (lstdin > 0) | ||