]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/bash/bash43-007
Revert "bash/readline: drop orphaned patches"
[ipfire-2.x.git] / src / patches / bash / bash43-007
CommitLineData
d19c8267
AF
1 BASH PATCH REPORT
2 =================
3
4Bash-Release: 4.3
5Patch-ID: bash43-007
6
7Bug-Reported-by: geir.hauge@gmail.com
8Bug-Reference-ID: <20140318093650.B181C1C5B0B@gina.itea.ntnu.no>
9Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2014-03/msg00095.html
10
11Bug-Description:
12
13Using compound assignments for associative arrays like
14
15assoc=( [x]= [y]=bar )
16
17left the value corresponding to the key `x' NULL. This caused subsequent
18lookups to interpret it as unset.
19
20Patch (apply with `patch -p0'):
21
22*** ../bash-4.3/arrayfunc.c 2013-08-02 16:19:59.000000000 -0400
23--- arrayfunc.c 2014-03-18 11:08:15.000000000 -0400
24***************
25*** 598,601 ****
26--- 598,606 ----
27 {
28 val = expand_assignment_string_to_string (val, 0);
29+ if (val == 0)
30+ {
31+ val = (char *)xmalloc (1);
32+ val[0] = '\0'; /* like do_assignment_internal */
33+ }
34 free_val = 1;
35 }
36*** ../bash-4.3/patchlevel.h 2012-12-29 10:47:57.000000000 -0500
37--- patchlevel.h 2014-03-20 20:01:28.000000000 -0400
38***************
39*** 26,30 ****
40 looks for to find the patch level (for the sccs version string). */
41
42! #define PATCHLEVEL 6
43
44 #endif /* _PATCHLEVEL_H_ */
45--- 26,30 ----
46 looks for to find the patch level (for the sccs version string). */
47
48! #define PATCHLEVEL 7
49
50 #endif /* _PATCHLEVEL_H_ */