|
|
ff19ae |
BASH PATCH REPORT
|
|
|
ff19ae |
=================
|
|
|
ff19ae |
|
|
|
ff19ae |
Bash-Release: 4.2
|
|
|
ff19ae |
Patch-ID: bash42-034
|
|
|
ff19ae |
|
|
|
ff19ae |
Bug-Reported-by: "Davide Brini" <dave_br@gmx.com>
|
|
|
ff19ae |
Bug-Reference-ID: <20120604164154.69781EC04B@imaps.oficinas.atrapalo.com>
|
|
|
ff19ae |
Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2012-06/msg00030.html
|
|
|
ff19ae |
|
|
|
ff19ae |
Bug-Description:
|
|
|
ff19ae |
|
|
|
ff19ae |
In bash-4.2, the history code would inappropriately add a semicolon to
|
|
|
ff19ae |
multi-line compound array assignments when adding them to the history.
|
|
|
ff19ae |
|
|
|
ff19ae |
Patch (apply with `patch -p0'):
|
|
|
ff19ae |
|
|
|
ff19ae |
*** ../bash-4.2-patched/parse.y 2011-11-21 18:03:36.000000000 -0500
|
|
|
ff19ae |
--- parse.y 2012-06-07 12:48:47.000000000 -0400
|
|
|
ff19ae |
***************
|
|
|
ff19ae |
*** 4900,4905 ****
|
|
|
ff19ae |
--- 4916,4924 ----
|
|
|
ff19ae |
return (current_command_line_count == 2 ? "\n" : "");
|
|
|
ff19ae |
}
|
|
|
ff19ae |
|
|
|
ff19ae |
+ if (parser_state & PST_COMPASSIGN)
|
|
|
ff19ae |
+ return (" ");
|
|
|
ff19ae |
+
|
|
|
ff19ae |
/* First, handle some special cases. */
|
|
|
ff19ae |
/*(*/
|
|
|
ff19ae |
/* If we just read `()', assume it's a function definition, and don't
|
|
|
ff19ae |
*** ../bash-4.2-patched/patchlevel.h Sat Jun 12 20:14:48 2010
|
|
|
ff19ae |
--- patchlevel.h Thu Feb 24 21:41:34 2011
|
|
|
ff19ae |
***************
|
|
|
ff19ae |
*** 26,30 ****
|
|
|
ff19ae |
looks for to find the patch level (for the sccs version string). */
|
|
|
ff19ae |
|
|
|
ff19ae |
! #define PATCHLEVEL 33
|
|
|
ff19ae |
|
|
|
ff19ae |
#endif /* _PATCHLEVEL_H_ */
|
|
|
ff19ae |
--- 26,30 ----
|
|
|
ff19ae |
looks for to find the patch level (for the sccs version string). */
|
|
|
ff19ae |
|
|
|
ff19ae |
! #define PATCHLEVEL 34
|
|
|
ff19ae |
|
|
|
ff19ae |
#endif /* _PATCHLEVEL_H_ */
|