1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-17 21:03:56 +02:00
openwrt-packages/utils/bash/patches/001-compile-fix.patch
Marcel Denia f73ee0d75d bash: Refresh patches
Signed-off-by: Marcel Denia <naoir@gmx.net>
2014-08-09 01:28:34 +02:00

16 lines
618 B
Diff

--- a/execute_cmd.c
+++ b/execute_cmd.c
@@ -2369,7 +2369,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)