7 Bug-Reported-by: Dan Church <h3xx@gmx.com>
8 Bug-Reference-ID: <1a8fd1d6-a3ac-9a67-78eb-b9a7435304c8@gmx.com>
9 Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2022-12/msg00076.html
13 In certain cases, using the `.' builtin in a subshell would optimize away
14 the rest of the commands in the subshell.
16 Patch (apply with `patch -p0'):
18 *** ../bash-5.2-patched/builtins/evalfile.c 2019-07-20 16:16:08.000000000 -0400
19 --- builtins/evalfile.c 2022-12-22 12:13:08.000000000 -0500
23 /* set the flags to be passed to parse_and_execute */
24 ! pflags = SEVAL_RESETLINE;
25 pflags |= (flags & FEVAL_HISTORY) ? 0 : SEVAL_NOHIST;
29 /* set the flags to be passed to parse_and_execute */
30 ! pflags = SEVAL_RESETLINE|SEVAL_NOOPTIMIZE;
31 pflags |= (flags & FEVAL_HISTORY) ? 0 : SEVAL_NOHIST;
33 *** ../bash-5.2/patchlevel.h 2020-06-22 14:51:03.000000000 -0400
34 --- patchlevel.h 2020-10-01 11:01:28.000000000 -0400
37 looks for to find the patch level (for the sccs version string). */
39 ! #define PATCHLEVEL 16
41 #endif /* _PATCHLEVEL_H_ */
43 looks for to find the patch level (for the sccs version string). */
45 ! #define PATCHLEVEL 17
47 #endif /* _PATCHLEVEL_H_ */