118-upstream-bash43-018.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 4.3
  4. Patch-ID: bash43-018
  5. Bug-Reported-by: Geir Hauge <geir.hauge@gmail.com>
  6. Bug-Reference-ID: <CAO-BiTLOvfPXDypg61jcBausADrxUKJejakV2WTWP26cW0=rgA@mail.gmail.com>
  7. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2014-05/msg00040.html
  8. Bug-Description:
  9. When assigning an array variable using the compound assignment syntax,
  10. but using `declare' with the rhs of the compound assignment quoted, the
  11. shell did not mark the variable as visible after successfully performing
  12. the assignment.
  13. Patch (apply with `patch -p0'):
  14. --- a/arrayfunc.c
  15. +++ b/arrayfunc.c
  16. @@ -179,6 +179,7 @@ bind_array_var_internal (entry, ind, key
  17. array_insert (array_cell (entry), ind, newval);
  18. FREE (newval);
  19. + VUNSETATTR (entry, att_invisible); /* no longer invisible */
  20. return (entry);
  21. }
  22. --- a/patchlevel.h
  23. +++ b/patchlevel.h
  24. @@ -25,6 +25,6 @@
  25. regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
  26. looks for to find the patch level (for the sccs version string). */
  27. -#define PATCHLEVEL 17
  28. +#define PATCHLEVEL 18
  29. #endif /* _PATCHLEVEL_H_ */