mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-12 05:00:50 +02:00
commit bash-20130111 snapshot
This commit is contained in:
@@ -5935,6 +5935,11 @@ parameter_brace_expand_rhs (name, value, c, quoted, qdollaratp, hasdollarat)
|
||||
else
|
||||
#endif /* ARRAY_VARS */
|
||||
bind_variable (name, t1, 0);
|
||||
if (STREQ (name, "IFS") == 0)
|
||||
stupidly_hack_special_variables (name);
|
||||
else
|
||||
/* XXX - what to do? Set a flag in w->flags to call setifs() later? */
|
||||
;
|
||||
|
||||
/* From Posix group discussion Feb-March 2010. Issue 7 0000221 */
|
||||
free (temp);
|
||||
@@ -8362,6 +8367,17 @@ add_string:
|
||||
a } in ${...} is removed. Issue 0000221 */
|
||||
if ((quoted & Q_DOLBRACE) && c == RBRACE)
|
||||
{
|
||||
SCOPY_CHAR_I (twochars, CTLESC, c, string, sindex, string_size);
|
||||
}
|
||||
/* This is the fix for " $@\ " */
|
||||
else if ((quoted & (Q_HERE_DOCUMENT|Q_DOUBLE_QUOTES)) && ((sh_syntaxtab[c] & tflag) == 0) & isexp == 0 && isifs (c))
|
||||
{
|
||||
RESIZE_MALLOCED_BUFFER (istring, istring_index, 2, istring_size,
|
||||
DEFAULT_ARRAY_SIZE);
|
||||
istring[istring_index++] = CTLESC;
|
||||
istring[istring_index++] = '\\';
|
||||
istring[istring_index] = '\0';
|
||||
|
||||
SCOPY_CHAR_I (twochars, CTLESC, c, string, sindex, string_size);
|
||||
}
|
||||
else if ((quoted & (Q_HERE_DOCUMENT|Q_DOUBLE_QUOTES)) && ((sh_syntaxtab[c] & tflag) == 0))
|
||||
|
||||
Reference in New Issue
Block a user