7 Bug-Reported-by: Greg Wooledge <wooledg@eeg.ccf.org>
8 Bug-Reference-ID: <20120425180443.GO22241@eeg.ccf.org>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2012-04/msg00172.html
13 The `lastpipe' option does not behave correctly on machines where the
14 open file limit is less than 256.
16 Patch (apply with `patch -p0'):
18 *** ../bash-4.2-patched/execute_cmd.c 2011-11-21 12:04:47.000000000 -0500
19 --- execute_cmd.c 2012-04-26 11:09:30.000000000 -0400
22 if (lastpipe_opt && job_control == 0 && asynchronous == 0 && pipe_out == NO_PIPE && prev > 0)
24 ! lstdin = move_to_high_fd (0, 0, 255);
28 if (lastpipe_opt && job_control == 0 && asynchronous == 0 && pipe_out == NO_PIPE && prev > 0)
30 ! lstdin = move_to_high_fd (0, 1, -1);
38 + #if defined (JOB_CONTROL)
39 discard_unwind_frame ("lastpipe-exec");
44 *** ../bash-4.2-patched/patchlevel.h Sat Jun 12 20:14:48 2010
45 --- patchlevel.h Thu Feb 24 21:41:34 2011
48 looks for to find the patch level (for the sccs version string). */
50 ! #define PATCHLEVEL 25
52 #endif /* _PATCHLEVEL_H_ */
54 looks for to find the patch level (for the sccs version string). */
56 ! #define PATCHLEVEL 26
58 #endif /* _PATCHLEVEL_H_ */