Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 873931 | Differences between
and this patch

Collapse All | Expand All

(-)a/parse.y (-2 / +5 lines)
Lines 4229-4235 xparse_dolparen (base, string, indp, flags) Link Here
4229
{
4229
{
4230
  sh_parser_state_t ps;
4230
  sh_parser_state_t ps;
4231
  sh_input_line_state_t ls;
4231
  sh_input_line_state_t ls;
4232
  int orig_ind, nc, sflags, start_lineno;
4232
  int orig_ind, nc, sflags, start_lineno, local_extglob;
4233
  char *ret, *ep, *ostring;
4233
  char *ret, *ep, *ostring;
4234
4234
4235
/*debug_parser(1);*/
4235
/*debug_parser(1);*/
Lines 4272-4278 xparse_dolparen (base, string, indp, flags) Link Here
4272
     old value will be restored by restore_parser_state(). */
4272
     old value will be restored by restore_parser_state(). */
4273
  expand_aliases = 0;
4273
  expand_aliases = 0;
4274
#if defined (EXTENDED_GLOB)
4274
#if defined (EXTENDED_GLOB)
4275
  global_extglob = extended_glob;		/* for reset_parser() */
4275
  local_extglob = global_extglob = extended_glob;	/* for reset_parser() */
4276
#endif
4276
#endif
4277
4277
4278
  token_to_read = DOLPAREN;			/* let's trick the parser */
4278
  token_to_read = DOLPAREN;			/* let's trick the parser */
Lines 4290-4295 xparse_dolparen (base, string, indp, flags) Link Here
4290
  restore_input_line_state (&ls);
4290
  restore_input_line_state (&ls);
4291
  restore_parser_state (&ps);
4291
  restore_parser_state (&ps);
4292
4292
4293
#if defined (EXTENDED_GLOB)
4294
  extended_glob = local_extglob;
4295
#endif
4293
  token_to_read = 0;
4296
  token_to_read = 0;
4294
4297
4295
  /* If parse_string returns < 0, we need to jump to top level with the
4298
  /* If parse_string returns < 0, we need to jump to top level with the

Return to bug 873931