On 11/12/22 4:39 AM, Kerin Millar wrote:
On Tue, 8 Nov 2022 09:50:51 -0500
Chet Ramey <chet.ra...@case.edu> 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, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/
*** ../bash-5.2-patched/parse.y 2022-08-31 11:47:03.000000000 -0400
--- parse.y     2022-10-05 11:55:18.000000000 -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 (&ps);
  
+ #if defined (EXTENDED_GLOB)
+   extended_glob = local_extglob;
+ #endif
    token_to_read = 0;
  

Reply via email to