0042-patchlevel-42.patch 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. From http://ftp.gnu.org/pub/gnu/bash/bash-4.3-patches/bash43-042
  2. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
  3. BASH PATCH REPORT
  4. =================
  5. Bash-Release: 4.3
  6. Patch-ID: bash43-042
  7. Bug-Reported-by: Nathan Neulinger <nneul@neulinger.org>
  8. Bug-Reference-ID: <558EFDF2.7060402@neulinger.org>
  9. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2015-06/msg00096.html
  10. Bug-Description:
  11. There is a problem when parsing command substitutions containing `case'
  12. commands within pipelines that causes the parser to not correctly identify
  13. the end of the command substitution.
  14. Patch (apply with `patch -p0'):
  15. *** a/bash-4.3-patched/parse.y 2015-05-18 19:27:05.000000000 -0400
  16. --- b/parse.y 2015-06-29 10:59:27.000000000 -0400
  17. ***************
  18. *** 3709,3712 ****
  19. --- 3709,3714 ----
  20. tflags |= LEX_INWORD;
  21. lex_wlen = 0;
  22. + if (tflags & LEX_RESWDOK)
  23. + lex_rwlen = 0;
  24. }
  25. }
  26. *** a/bash-4.3-patched/y.tab.c 2015-05-18 19:27:05.000000000 -0400
  27. --- b/y.tab.c 2015-06-29 10:59:27.000000000 -0400
  28. ***************
  29. *** 6021,6024 ****
  30. --- 6021,6026 ----
  31. tflags |= LEX_INWORD;
  32. lex_wlen = 0;
  33. + if (tflags & LEX_RESWDOK)
  34. + lex_rwlen = 0;
  35. }
  36. }
  37. *** a/bash-4.3/patchlevel.h 2012-12-29 10:47:57.000000000 -0500
  38. --- b/patchlevel.h 2014-03-20 20:01:28.000000000 -0400
  39. ***************
  40. *** 26,30 ****
  41. looks for to find the patch level (for the sccs version string). */
  42. ! #define PATCHLEVEL 41
  43. #endif /* _PATCHLEVEL_H_ */
  44. --- 26,30 ----
  45. looks for to find the patch level (for the sccs version string). */
  46. ! #define PATCHLEVEL 42
  47. #endif /* _PATCHLEVEL_H_ */