commit bash-20120302 snapshot

This commit is contained in:
Chet Ramey
2012-04-09 09:59:09 -04:00
parent 09cd2889c9
commit e73012f12c
106 changed files with 59210 additions and 28364 deletions
+5 -6
View File
@@ -6640,12 +6640,11 @@ parameter_brace_patsub (varname, value, ind, patsub, quoted, flags)
pat = getpattern (lpatsub, quoted, 1);
if (rep)
{
if ((mflags & MATCH_QUOTED) == 0)
rep = expand_string_if_necessary (rep, quoted, expand_string_unsplit);
else
rep = expand_string_to_string_internal (rep, quoted, expand_string_unsplit);
}
/* We want to perform quote removal on the expanded replacement even if
the entire expansion is double-quoted because the parser and string
extraction functions treated quotes in the replacement string as
special. */
rep = expand_string_if_necessary (rep, quoted & ~(Q_DOUBLE_QUOTES|Q_HERE_DOCUMENT), expand_string_unsplit);
/* ksh93 doesn't allow the match specifier to be a part of the expanded
pattern. This is an extension. Make sure we don't anchor the pattern