Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 822865 Details for
Bug 873931
app-shells/bash-5.2: QA Notice: Global shell options changed and were not restored while calling 'src_configure'
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bash-5.2_p2-fix-for-brackets-in-nested-parameter-expansions.patch
bash-5.2_p2-fix-for-brackets-in-nested-parameter-expansions.patch (text/plain), 1.48 KB, created by
kfm
on 2022-10-08 16:45:40 UTC
(
hide
)
Description:
bash-5.2_p2-fix-for-brackets-in-nested-parameter-expansions.patch
Filename:
MIME Type:
Creator:
kfm
Created:
2022-10-08 16:45:40 UTC
Size:
1.48 KB
patch
obsolete
>diff --git subst.c subst.c >index 93b9160..295d3aa 100644 >--- subst.c >+++ subst.c >@@ -1798,6 +1798,9 @@ extract_heredoc_dolbrace_string (string, sindex, quoted, flags) > return (result); > } > >+#define PARAMEXPNEST_MAX 32 // for now >+static int dbstate[PARAMEXPNEST_MAX]; >+ > /* Extract a parameter expansion expression within ${ and } from STRING. > Obey the Posix.2 rules for finding the ending `}': count braces while > skipping over enclosed quoted strings and command substitutions. >@@ -1828,6 +1831,8 @@ extract_dollar_brace_string (string, sindex, quoted, flags) > if (quoted == Q_HERE_DOCUMENT && dolbrace_state == DOLBRACE_QUOTE && (flags & SX_NOALLOC) == 0) > return (extract_heredoc_dolbrace_string (string, sindex, quoted, flags)); > >+ dbstate[0] = dolbrace_state; >+ > pass_character = 0; > nesting_level = 1; > slen = strlen (string + *sindex) + *sindex; >@@ -1852,6 +1857,8 @@ extract_dollar_brace_string (string, sindex, quoted, flags) > > if (string[i] == '$' && string[i+1] == LBRACE) > { >+ if (nesting_level < PARAMEXPNEST_MAX) >+ dbstate[nesting_level] = dolbrace_state; > nesting_level++; > i += 2; > if (dolbrace_state == DOLBRACE_QUOTE || dolbrace_state == DOLBRACE_WORD) >@@ -1864,6 +1871,7 @@ extract_dollar_brace_string (string, sindex, quoted, flags) > nesting_level--; > if (nesting_level == 0) > break; >+ dolbrace_state = (nesting_level < PARAMEXPNEST_MAX) ? dbstate[nesting_level] : dbstate[0]; /* Guess using initial state */ > i++; > continue; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 873931
:
815095
|
815119
|
815125
|
822688
|
822832
|
822862
| 822865