bash31-004 1.4 KB

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