0018-bash50-018.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. From https://ftp.gnu.org/gnu/bash/bash-5.0-patches/bash55-018
  2. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
  3. BASH PATCH REPORT
  4. =================
  5. Bash-Release: 5.0
  6. Patch-ID: bash50-018
  7. Bug-Reported-by: oguzismailuysal@gmail.com
  8. Bug-Reference-ID:
  9. Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2019-10/msg00098.html
  10. Bug-Description:
  11. In certain cases, bash does not perform quoted null removal on patterns
  12. that are used as part of word expansions such as ${parameter##pattern}, so
  13. empty patterns are treated as non-empty.
  14. Patch (apply with `patch -p0'):
  15. *** bash-5.0.17/subst.c 2020-04-02 17:14:58.000000000 -0400
  16. --- b/subst.c 2020-07-09 15:28:19.000000000 -0400
  17. ***************
  18. *** 5113,5116 ****
  19. --- b/5113,5118 ----
  20. (int *)NULL, (int *)NULL)
  21. : (WORD_LIST *)0;
  22. + if (l)
  23. + word_list_remove_quoted_nulls (l);
  24. pat = string_list (l);
  25. dispose_words (l);
  26. *** bash-5.0/patchlevel.h 2016-06-22 14:51:03.000000000 -0400
  27. --- b/patchlevel.h 2016-10-01 11:01:28.000000000 -0400
  28. ***************
  29. *** 26,30 ****
  30. looks for to find the patch level (for the sccs version string). */
  31. ! #define PATCHLEVEL 17
  32. #endif /* _PATCHLEVEL_H_ */
  33. --- b/26,30 ----
  34. looks for to find the patch level (for the sccs version string). */
  35. ! #define PATCHLEVEL 18
  36. #endif /* _PATCHLEVEL_H_ */