bash52-017.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 5.2
  4. Patch-ID: bash52-017
  5. Bug-Reported-by: Dan Church <h3xx@gmx.com>
  6. Bug-Reference-ID: <1a8fd1d6-a3ac-9a67-78eb-b9a7435304c8@gmx.com>
  7. Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2022-12/msg00076.html
  8. Bug-Description:
  9. In certain cases, using the `.' builtin in a subshell would optimize away
  10. the rest of the commands in the subshell.
  11. Patch (apply with `patch -p0'):
  12. *** ../bash-5.2-patched/builtins/evalfile.c 2019-07-20 16:16:08.000000000 -0400
  13. --- builtins/evalfile.c 2022-12-22 12:13:08.000000000 -0500
  14. ***************
  15. *** 267,271 ****
  16. /* set the flags to be passed to parse_and_execute */
  17. ! pflags = SEVAL_RESETLINE;
  18. pflags |= (flags & FEVAL_HISTORY) ? 0 : SEVAL_NOHIST;
  19. --- 267,271 ----
  20. /* set the flags to be passed to parse_and_execute */
  21. ! pflags = SEVAL_RESETLINE|SEVAL_NOOPTIMIZE;
  22. pflags |= (flags & FEVAL_HISTORY) ? 0 : SEVAL_NOHIST;
  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 16
  29. #endif /* _PATCHLEVEL_H_ */
  30. --- 26,30 ----
  31. looks for to find the patch level (for the sccs version string). */
  32. ! #define PATCHLEVEL 17
  33. #endif /* _PATCHLEVEL_H_ */