Re: Bash-5.2 official patch 9
> On 14 Nov 2022, at 20:03, Chet Ramey wrote: > > On 11/12/22 4:39 AM, Kerin Millar wrote: >> On Tue, 8 Nov 2022 09:50:51 -0500 >> Chet Ramey wrote: >>> BASH PATCH REPORT >>> = >>> >>> Bash-Release: 5.2 >>> Patch-ID: bash52-009 >> Are there any plans to backport the "fixes for extended glob in compat mode" >> in the near future? > > What is the "near future?" I have a patch that will probably be part of > the next batch (attached if you want to use it). There's only been the one > report of a problem, though, which impacts its priority. Thanks, I'll backport it in Gentoo now. Being part of the next batch is helpful to know. signature.asc Description: Message signed with OpenPGP
Re: Bash-5.2 official patch 9
On 11/12/22 4:39 AM, Kerin Millar wrote: On Tue, 8 Nov 2022 09:50:51 -0500 Chet Ramey wrote: BASH PATCH REPORT = Bash-Release: 5.2 Patch-ID: bash52-009 Are there any plans to backport the "fixes for extended glob in compat mode" in the near future? What is the "near future?" I have a patch that will probably be part of the next batch (attached if you want to use it). There's only been the one report of a problem, though, which impacts its priority. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/ *** ../bash-5.2-patched/parse.y 2022-08-31 11:47:03.0 -0400 --- parse.y 2022-10-05 11:55:18.0 -0400 *** *** 4230,4234 sh_parser_state_t ps; sh_input_line_state_t ls; ! int orig_ind, nc, sflags, start_lineno; char *ret, *ep, *ostring; --- 4230,4234 sh_parser_state_t ps; sh_input_line_state_t ls; ! int orig_ind, nc, sflags, start_lineno, local_extglob; char *ret, *ep, *ostring; *** *** 4273,4277 expand_aliases = 0; #if defined (EXTENDED_GLOB) ! global_extglob = extended_glob; /* for reset_parser() */ #endif --- 4273,4277 expand_aliases = 0; #if defined (EXTENDED_GLOB) ! local_extglob = global_extglob = extended_glob; /* for reset_parser() */ #endif *** *** 4291,4294 --- 4291,4297 restore_parser_state (); + #if defined (EXTENDED_GLOB) + extended_glob = local_extglob; + #endif token_to_read = 0;
Re: Bash-5.2 official patch 9
On Tue, 8 Nov 2022 09:50:51 -0500 Chet Ramey wrote: >BASH PATCH REPORT >= > > Bash-Release: 5.2 > Patch-ID: bash52-009 Are there any plans to backport the "fixes for extended glob in compat mode" in the near future? -- Kerin Millar
Bash-5.2 official patch 9
BASH PATCH REPORT = Bash-Release: 5.2 Patch-ID: bash52-009 Bug-Reported-by:Corey Hickey Bug-Reference-ID: <134330ef-0ead-d73e-68eb-d58fc51ef...@fatooh.org> Bug-Reference-URL: https://lists.gnu.org/archive/html/help-bash/2022-10/msg00025.html Bug-Description: Bash arithmetic expansion should allow `@' and `*' to be used as associative array keys in expressions. Patch (apply with `patch -p0'): *** ../bash-5.2-patched/expr.c 2022-07-11 10:03:34.0 -0400 --- expr.c 2022-10-31 10:51:08.0 -0400 *** *** 1169,1172 --- 1169,1174 #if defined (ARRAY_VARS) aflag = tflag; /* use a different variable for now */ + if (shell_compatibility_level > 51) + aflag |= AV_ATSTARKEYS; v = (e == ']') ? array_variable_part (tok, tflag, (char **)0, (int *)0) : find_variable (tok); #else *** ../bash-5.2/patchlevel.h2020-06-22 14:51:03.0 -0400 --- patchlevel.h2020-10-01 11:01:28.0 -0400 *** *** 26,30 looks for to find the patch level (for the sccs version string). */ ! #define PATCHLEVEL 8 #endif /* _PATCHLEVEL_H_ */ --- 26,30 looks for to find the patch level (for the sccs version string). */ ! #define PATCHLEVEL 9 #endif /* _PATCHLEVEL_H_ */ -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/