> seems to be just like the bug fixed in bash41-006, but with a diff for loop > style. simple example:
Try the attached patch and let me know the results. It fixes this case and a couple of others. Chet
*** ../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)
``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/