]> git.ipfire.org Git - thirdparty/bash.git/commitdiff
Bash-5.2 patch 17: fix for optimizing forks when using the . builtin in a subshell
authorChet Ramey <chet.ramey@case.edu>
Thu, 9 Nov 2023 21:44:13 +0000 (16:44 -0500)
committerChet Ramey <chet.ramey@case.edu>
Thu, 9 Nov 2023 21:44:13 +0000 (16:44 -0500)
builtins/evalfile.c
patchlevel.h

index fc3975ec82cb6fe970ca81e98a05e6c41bd76abf..604de577ede294e5da5bbb9c2e9b2d0db4ee76e9 100644 (file)
@@ -266,7 +266,7 @@ file_error_and_exit:
 #endif
 
   /* set the flags to be passed to parse_and_execute */
-  pflags = SEVAL_RESETLINE;
+  pflags = SEVAL_RESETLINE|SEVAL_NOOPTIMIZE;
   pflags |= (flags & FEVAL_HISTORY) ? 0 : SEVAL_NOHIST;
 
   if (flags & FEVAL_BUILTIN)
index 2e8a3dac93fac493fc8128fec5887ef10cf43afa..7b69019e2ded4a42855c600a8049fde08b6f5bac 100644 (file)
@@ -25,6 +25,6 @@
    regexp `^#define[   ]*PATCHLEVEL', since that's what support/mkversion.sh
    looks for to find the patch level (for the sccs version string). */
 
-#define PATCHLEVEL 16
+#define PATCHLEVEL 17
 
 #endif /* _PATCHLEVEL_H_ */