0037-patchlevel-37.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. From http://ftp.gnu.org/pub/gnu/bash/bash-4.3-patches/bash43-037
  2. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
  3. BASH PATCH REPORT
  4. =================
  5. Bash-Release: 4.3
  6. Patch-ID: bash43-037
  7. Bug-Reported-by: Greg Wooledge <wooledg@eeg.ccf.org>
  8. Bug-Reference-ID: <20150204144240.GN13956@eeg.ccf.org>
  9. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2015-02/msg00007.html
  10. Bug-Description:
  11. If an associative array uses `@' or `*' as a subscript, `declare -p' produces
  12. output that cannot be reused as input.
  13. Patch (apply with `patch -p0'):
  14. *** a/bash-4.3-patched/assoc.c 2011-11-05 16:39:05.000000000 -0400
  15. --- b/assoc.c 2015-02-04 15:28:25.000000000 -0500
  16. ***************
  17. *** 437,440 ****
  18. --- 440,445 ----
  19. if (sh_contains_shell_metas (tlist->key))
  20. istr = sh_double_quote (tlist->key);
  21. + else if (ALL_ELEMENT_SUB (tlist->key[0]) && tlist->key[1] == '\0')
  22. + istr = sh_double_quote (tlist->key);
  23. else
  24. istr = tlist->key;
  25. *** a/bash-4.3/patchlevel.h 2012-12-29 10:47:57.000000000 -0500
  26. --- b/patchlevel.h 2014-03-20 20:01:28.000000000 -0400
  27. ***************
  28. *** 26,30 ****
  29. looks for to find the patch level (for the sccs version string). */
  30. ! #define PATCHLEVEL 36
  31. #endif /* _PATCHLEVEL_H_ */
  32. --- 26,30 ----
  33. looks for to find the patch level (for the sccs version string). */
  34. ! #define PATCHLEVEL 37
  35. #endif /* _PATCHLEVEL_H_ */