process $'...' and $"..." in here-documents

This commit is contained in:
Chet Ramey
2021-03-15 09:30:44 -04:00
parent 2fe2e8197e
commit 83c4ad27c7
13 changed files with 242 additions and 13 deletions
+10 -2
View File
@@ -2764,13 +2764,17 @@ static int
history_and_alias_expand_line (count, ignore)
int count, ignore;
{
char *new_line;
char *new_line, *t;
new_line = 0;
#if defined (BANG_HISTORY)
new_line = history_expand_line_internal (rl_line_buffer);
#endif
t = expand_string_dollar_quote (new_line ? new_line : rl_line_buffer, 0);
FREE (new_line);
new_line = t;
#if defined (ALIAS)
if (new_line)
{
@@ -2802,7 +2806,7 @@ static int
shell_expand_line (count, ignore)
int count, ignore;
{
char *new_line;
char *new_line, *t;
WORD_LIST *expanded_string;
WORD_DESC *w;
@@ -2811,6 +2815,10 @@ shell_expand_line (count, ignore)
new_line = history_expand_line_internal (rl_line_buffer);
#endif
t = expand_string_dollar_quote (new_line ? new_line : rl_line_buffer, 0);
FREE (new_line);
new_line = t;
#if defined (ALIAS)
if (new_line)
{