perl/Module-Build-Tiny: update to 0.051 for Perl 5.36 and 5.38
[oi-userland.git] / components / shell / bash / patches / bash52-023.patch
blob07ba4ae437782246ada0d1056ecbb94b27fe9016
1 BASH PATCH REPORT
2 =================
4 Bash-Release: 5.2
5 Patch-ID: bash52-023
7 Bug-Reported-by: Emanuele Torre <torreemanuele6@gmail.com>
8 Bug-Reference-ID: <20230206140824.1710288-1-torreemanuele6@gmail.com>
9 Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2023-02/msg00045.html
11 Bug-Description:
13 Running `local -' multiple times in a shell function would overwrite the
14 original saved set of options.
16 Patch (apply with `patch -p0'):
18 *** ../bash-5.2-patched/builtins/declare.def 2023-01-04 20:40:28.000000000 -0500
19 --- builtins/declare.def 2023-02-08 15:36:49.000000000 -0500
20 ***************
21 *** 421,429 ****
22 if (local_var && variable_context && STREQ (name, "-"))
24 var = make_local_variable ("-", 0);
25 ! FREE (value_cell (var)); /* just in case */
26 ! value = get_current_options ();
27 ! var_setvalue (var, value);
28 ! VSETATTR (var, att_invisible);
29 NEXT_VARIABLE ();
31 --- 421,437 ----
32 if (local_var && variable_context && STREQ (name, "-"))
34 + int o;
36 + o = localvar_inherit;
37 + localvar_inherit = 0;
38 var = make_local_variable ("-", 0);
39 ! localvar_inherit = o;
41 ! if (value_cell (var) == NULL) /* no duplicate instances */
42 ! {
43 ! value = get_current_options ();
44 ! var_setvalue (var, value);
45 ! VSETATTR (var, att_invisible);
46 ! }
47 NEXT_VARIABLE ();
50 *** ../bash-5.2/patchlevel.h 2020-06-22 14:51:03.000000000 -0400
51 --- patchlevel.h 2020-10-01 11:01:28.000000000 -0400
52 ***************
53 *** 26,30 ****
54 looks for to find the patch level (for the sccs version string). */
56 ! #define PATCHLEVEL 22
58 #endif /* _PATCHLEVEL_H_ */
59 --- 26,30 ----
60 looks for to find the patch level (for the sccs version string). */
62 ! #define PATCHLEVEL 23
64 #endif /* _PATCHLEVEL_H_ */