equal
deleted
inserted
replaced
1 BASH PATCH REPORT |
|
2 ================= |
|
3 |
|
4 Bash-Release: 4.2 |
|
5 Patch-ID: bash42-034 |
|
6 |
|
7 Bug-Reported-by: "Davide Brini" <[email protected]> |
|
8 Bug-Reference-ID: <[email protected]> |
|
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2012-06/msg00030.html |
|
10 |
|
11 Bug-Description: |
|
12 |
|
13 In bash-4.2, the history code would inappropriately add a semicolon to |
|
14 multi-line compound array assignments when adding them to the history. |
|
15 |
|
16 Patch (apply with `patch -p0'): |
|
17 |
|
18 *** ../bash-4.2-patched/parse.y 2011-11-21 18:03:36.000000000 -0500 |
|
19 --- parse.y 2012-06-07 12:48:47.000000000 -0400 |
|
20 *************** |
|
21 *** 4900,4905 **** |
|
22 --- 4916,4924 ---- |
|
23 return (current_command_line_count == 2 ? "\n" : ""); |
|
24 } |
|
25 |
|
26 + if (parser_state & PST_COMPASSIGN) |
|
27 + return (" "); |
|
28 + |
|
29 /* First, handle some special cases. */ |
|
30 /*(*/ |
|
31 /* If we just read `()', assume it's a function definition, and don't |
|
32 *** ../bash-4.2-patched/patchlevel.h Sat Jun 12 20:14:48 2010 |
|
33 --- patchlevel.h Thu Feb 24 21:41:34 2011 |
|
34 *************** |
|
35 *** 26,30 **** |
|
36 looks for to find the patch level (for the sccs version string). */ |
|
37 |
|
38 ! #define PATCHLEVEL 33 |
|
39 |
|
40 #endif /* _PATCHLEVEL_H_ */ |
|
41 --- 26,30 ---- |
|
42 looks for to find the patch level (for the sccs version string). */ |
|
43 |
|
44 ! #define PATCHLEVEL 34 |
|
45 |
|
46 #endif /* _PATCHLEVEL_H_ */ |
|