http://lists.gnu.org/archive/html/bug-bash/2011-04/msg00058.html http://bugs.gentoo.org/363371 *** ../bash-4.2-patched/print_cmd.c 2010-05-30 18:34:08.000000000 -0400 --- print_cmd.c 2011-04-14 10:43:18.000000000 -0400 *************** *** 316,319 **** --- 317,321 ---- skip_this_indent++; make_command_string_internal (command->value.Subshell->command); + PRINT_DEFERRED_HEREDOCS (""); cprintf (" )"); break; *************** *** 593,596 **** --- 606,610 ---- indentation += indentation_amount; make_command_string_internal (arith_for_command->action); + PRINT_DEFERRED_HEREDOCS (""); semicolon (); indentation -= indentation_amount; *************** *** 654,657 **** --- 668,672 ---- make_command_string_internal (group_command->command); + PRINT_DEFERRED_HEREDOCS (""); if (inside_function_def)