mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-10 12:10:35 +02:00
process $'...' and $"..." in here-documents
This commit is contained in:
+10
-2
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user