7 Bug-Reported-by: Mike Frysinger <vapier@gentoo.org>
8 Bug-Reference-ID: <201104122356.20160.vapier@gentoo.org>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2011-04/msg00058.html
13 Bash did not correctly print/reproduce here documents attached to commands
14 inside compound commands such as arithmetic for loops and user-specified
15 subshells. This affected the execution of such commands inside a shell
16 function when the function definition is saved and later restored using
19 Patch (apply with `patch -p0'):
23 @@ -315,6 +315,7 @@ make_command_string_internal (command)
26 make_command_string_internal (command->value.Subshell->command);
27 + PRINT_DEFERRED_HEREDOCS ("");
31 @@ -592,6 +593,7 @@ print_arith_for_command (arith_for_comma
33 indentation += indentation_amount;
34 make_command_string_internal (arith_for_command->action);
35 + PRINT_DEFERRED_HEREDOCS ("");
37 indentation -= indentation_amount;
39 @@ -653,6 +655,7 @@ print_group_command (group_command)
42 make_command_string_internal (group_command->command);
43 + PRINT_DEFERRED_HEREDOCS ("");
45 if (inside_function_def)
50 regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
51 looks for to find the patch level (for the sccs version string). */
54 +#define PATCHLEVEL 10
56 #endif /* _PATCHLEVEL_H_ */