]>
Commit | Line | Data |
---|---|---|
9c6e89a2 ER |
1 | BASH PATCH REPORT |
2 | ================= | |
3 | ||
4 | Bash-Release: 3.1 | |
5 | Patch-ID: bash31-004 | |
6 | ||
7 | Bug-Reported-by: Mike Frysinger <vapier@gentoo.org> | |
8 | Bug-Reference-ID: <20051223172359.GF14579@toucan.gentoo.org> | |
9 | Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2005-12/msg00062.html | |
10 | ||
11 | Bug-Description: | |
12 | ||
13 | A local array variable declared at function scope that shadows a variable | |
14 | of the same name declared in a previous scope did not create a separate | |
15 | variable instance, but used the previous one. | |
16 | ||
17 | Patch: | |
18 | ||
19 | *** ../bash-3.1/subst.c Mon Oct 24 09:51:13 2005 | |
20 | --- subst.c Fri Dec 30 12:11:53 2005 | |
21 | *************** | |
22 | *** 2188,2192 **** | |
23 | { | |
24 | v = find_variable (name); | |
25 | ! if (v == 0 || array_p (v) == 0) | |
26 | v = make_local_array_variable (name); | |
27 | v = assign_array_var_from_string (v, value, flags); | |
28 | --- 2188,2192 ---- | |
29 | { | |
30 | v = find_variable (name); | |
31 | ! if (v == 0 || array_p (v) == 0 || v->context != variable_context) | |
32 | v = make_local_array_variable (name); | |
33 | v = assign_array_var_from_string (v, value, flags); | |
34 | *** ../bash-3.1/patchlevel.h Wed Jul 20 13:58:20 2005 | |
35 | --- patchlevel.h Wed Dec 7 13:48:42 2005 | |
36 | *************** | |
37 | *** 26,30 **** | |
38 | looks for to find the patch level (for the sccs version string). */ | |
39 | ||
40 | ! #define PATCHLEVEL 3 | |
41 | ||
42 | #endif /* _PATCHLEVEL_H_ */ | |
43 | --- 26,30 ---- | |
44 | looks for to find the patch level (for the sccs version string). */ | |
45 | ||
46 | ! #define PATCHLEVEL 4 | |
47 | ||
48 | #endif /* _PATCHLEVEL_H_ */ |