You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.0 KiB

  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 4.3
  4. Patch-ID: bash43-037
  5. Bug-Reported-by: Greg Wooledge <wooledg@eeg.ccf.org>
  6. Bug-Reference-ID: <20150204144240.GN13956@eeg.ccf.org>
  7. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2015-02/msg00007.html
  8. Bug-Description:
  9. If an associative array uses `@' or `*' as a subscript, `declare -p' produces
  10. output that cannot be reused as input.
  11. Patch (apply with `patch -p0'):
  12. --- a/assoc.c
  13. +++ b/assoc.c
  14. @@ -436,6 +436,8 @@ assoc_to_assign (hash, quoted)
  15. #if 1
  16. if (sh_contains_shell_metas (tlist->key))
  17. istr = sh_double_quote (tlist->key);
  18. + else if (ALL_ELEMENT_SUB (tlist->key[0]) && tlist->key[1] == '\0')
  19. + istr = sh_double_quote (tlist->key);
  20. else
  21. istr = tlist->key;
  22. #else
  23. --- a/patchlevel.h
  24. +++ b/patchlevel.h
  25. @@ -25,6 +25,6 @@
  26. regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
  27. looks for to find the patch level (for the sccs version string). */
  28. -#define PATCHLEVEL 36
  29. +#define PATCHLEVEL 37
  30. #endif /* _PATCHLEVEL_H_ */