[packages] bash: update to 4.2
[openwrt/svn-archive/archive.git] / utils / bash / patches / 001-compile-fix.patch
1 Index: bash-4.2/execute_cmd.c
2 ===================================================================
3 --- bash-4.2.orig/execute_cmd.c 2011-07-04 11:16:23.000000000 +0200
4 +++ bash-4.2/execute_cmd.c 2011-07-04 11:17:33.000000000 +0200
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)