summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-04-29 22:54:34 +0000
committerMike Frysinger <vapier@gentoo.org>2011-04-29 22:54:34 +0000
commitaa44c17bf425e8c610dea0ca1548ecc3372bb55d (patch)
tree2da862db2b3faf12a64cdfbddcd994e942ec9c2f /app-shells/bash/files
parentold (diff)
downloadgentoo-2-aa44c17bf425e8c610dea0ca1548ecc3372bb55d.tar.gz
gentoo-2-aa44c17bf425e8c610dea0ca1548ecc3372bb55d.tar.bz2
gentoo-2-aa44c17bf425e8c610dea0ca1548ecc3372bb55d.zip
Add fix from upstream for heredocs printing #363371 by Andrey Hippo.
(Portage version: 2.2.0_alpha28/cvs/Linux x86_64)
Diffstat (limited to 'app-shells/bash/files')
-rw-r--r--app-shells/bash/files/bash-4.2-print-heredoc.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/app-shells/bash/files/bash-4.2-print-heredoc.patch b/app-shells/bash/files/bash-4.2-print-heredoc.patch
new file mode 100644
index 000000000000..cd2f5bbdd337
--- /dev/null
+++ b/app-shells/bash/files/bash-4.2-print-heredoc.patch
@@ -0,0 +1,30 @@
+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)
+