]> git.pld-linux.org Git - packages/bash.git/blame - bash42-010
- release 2
[packages/bash.git] / bash42-010
CommitLineData
74aff021
AM
1 BASH PATCH REPORT
2 =================
3
4Bash-Release: 4.2
5Patch-ID: bash42-010
6
7Bug-Reported-by: Mike Frysinger <vapier@gentoo.org>
8Bug-Reference-ID: <201104122356.20160.vapier@gentoo.org>
9Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2011-04/msg00058.html
10
11Bug-Description:
12
13Bash did not correctly print/reproduce here documents attached to commands
14inside compound commands such as arithmetic for loops and user-specified
15subshells. This affected the execution of such commands inside a shell
16function when the function definition is saved and later restored using
17`.' or `eval'.
18
19Patch (apply with `patch -p0'):
20
21*** ../bash-4.2-patched/print_cmd.c 2010-05-30 18:34:08.000000000 -0400
22--- print_cmd.c 2011-04-14 10:43:18.000000000 -0400
23***************
24*** 316,319 ****
25--- 317,321 ----
26 skip_this_indent++;
27 make_command_string_internal (command->value.Subshell->command);
28+ PRINT_DEFERRED_HEREDOCS ("");
29 cprintf (" )");
30 break;
31***************
32*** 593,596 ****
33--- 606,610 ----
34 indentation += indentation_amount;
35 make_command_string_internal (arith_for_command->action);
36+ PRINT_DEFERRED_HEREDOCS ("");
37 semicolon ();
38 indentation -= indentation_amount;
39***************
40*** 654,657 ****
41--- 668,672 ----
42
43 make_command_string_internal (group_command->command);
44+ PRINT_DEFERRED_HEREDOCS ("");
45
46 if (inside_function_def)
47*** ../bash-4.2-patched/patchlevel.h Sat Jun 12 20:14:48 2010
48--- patchlevel.h Thu Feb 24 21:41:34 2011
49***************
50*** 26,30 ****
51 looks for to find the patch level (for the sccs version string). */
52
53! #define PATCHLEVEL 9
54
55 #endif /* _PATCHLEVEL_H_ */
56--- 26,30 ----
57 looks for to find the patch level (for the sccs version string). */
58
59! #define PATCHLEVEL 10
60
61 #endif /* _PATCHLEVEL_H_ */
This page took 0.036174 seconds and 4 git commands to generate.