bash52-009.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 5.2
  4. Patch-ID: bash52-009
  5. Bug-Reported-by: Corey Hickey <bugfood-ml@fatooh.org>
  6. Bug-Reference-ID: <134330ef-0ead-d73e-68eb-d58fc51efdba@fatooh.org>
  7. Bug-Reference-URL: https://lists.gnu.org/archive/html/help-bash/2022-10/msg00025.html
  8. Bug-Description:
  9. Bash arithmetic expansion should allow `@' and `*' to be used as associative
  10. array keys in expressions.
  11. Patch (apply with `patch -p0'):
  12. *** ../bash-5.2-patched/expr.c 2022-07-11 10:03:34.000000000 -0400
  13. --- expr.c 2022-10-31 10:51:08.000000000 -0400
  14. ***************
  15. *** 1169,1172 ****
  16. --- 1169,1174 ----
  17. #if defined (ARRAY_VARS)
  18. aflag = tflag; /* use a different variable for now */
  19. + if (shell_compatibility_level > 51)
  20. + aflag |= AV_ATSTARKEYS;
  21. v = (e == ']') ? array_variable_part (tok, tflag, (char **)0, (int *)0) : find_variable (tok);
  22. #else
  23. *** ../bash-5.2/patchlevel.h 2020-06-22 14:51:03.000000000 -0400
  24. --- patchlevel.h 2020-10-01 11:01:28.000000000 -0400
  25. ***************
  26. *** 26,30 ****
  27. looks for to find the patch level (for the sccs version string). */
  28. ! #define PATCHLEVEL 8
  29. #endif /* _PATCHLEVEL_H_ */
  30. --- 26,30 ----
  31. looks for to find the patch level (for the sccs version string). */
  32. ! #define PATCHLEVEL 9
  33. #endif /* _PATCHLEVEL_H_ */