0039-patchlevel-39.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. From http://ftp.gnu.org/pub/gnu/bash/bash-4.3-patches/bash43-039
  2. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
  3. BASH PATCH REPORT
  4. =================
  5. Bash-Release: 4.3
  6. Patch-ID: bash43-039
  7. Bug-Reported-by: SN <poczta-sn@gazeta.pl>
  8. Bug-Reference-ID: <54E2554C.205@gazeta.pl>
  9. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2015-02/msg00060.html
  10. Bug-Description:
  11. Using the output of `declare -p' when run in a function can result in variables
  12. that are invisible to `declare -p'. This problem occurs when an assignment
  13. builtin such as `declare' receives a quoted compound array assignment as one of
  14. its arguments.
  15. Patch (apply with `patch -p0'):
  16. *** a/bash-4.3-patched/arrayfunc.c 2014-10-01 13:08:48.000000000 -0400
  17. --- b/arrayfunc.c 2015-02-19 14:33:05.000000000 -0500
  18. ***************
  19. *** 405,408 ****
  20. --- 405,411 ----
  21. else
  22. array_insert (a, i, l->word->word);
  23. +
  24. + VUNSETATTR (var, att_invisible); /* no longer invisible */
  25. +
  26. return var;
  27. }
  28. ***************
  29. *** 635,638 ****
  30. --- 638,645 ----
  31. if (nlist)
  32. dispose_words (nlist);
  33. +
  34. + if (var)
  35. + VUNSETATTR (var, att_invisible); /* no longer invisible */
  36. +
  37. return (var);
  38. }
  39. *** a/bash-4.3/patchlevel.h 2012-12-29 10:47:57.000000000 -0500
  40. --- b/patchlevel.h 2014-03-20 20:01:28.000000000 -0400
  41. ***************
  42. *** 26,30 ****
  43. looks for to find the patch level (for the sccs version string). */
  44. ! #define PATCHLEVEL 38
  45. #endif /* _PATCHLEVEL_H_ */
  46. --- 26,30 ----
  47. looks for to find the patch level (for the sccs version string). */
  48. ! #define PATCHLEVEL 39
  49. #endif /* _PATCHLEVEL_H_ */