92426585d7
Copy from Base:System/bash based on submit request 18772 from user coolo OBS-URL: https://build.opensuse.org/request/show/18772 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=43
23 lines
716 B
Diff
23 lines
716 B
Diff
Index: parse.y
|
|
===================================================================
|
|
--- parse.y.orig
|
|
+++ parse.y
|
|
@@ -3106,7 +3106,7 @@ parse_matched_pair (qc, open, close, len
|
|
ttrans = ansiexpand (nestret, 0, nestlen - 1, &ttranslen);
|
|
xfree (nestret);
|
|
|
|
- if ((rflags & P_DQUOTE) == 0)
|
|
+ if (extended_quote || (rflags & P_DQUOTE) == 0)
|
|
{
|
|
nestret = sh_single_quote (ttrans);
|
|
free (ttrans);
|
|
@@ -3517,7 +3517,7 @@ eof_error:
|
|
ttrans = ansiexpand (nestret, 0, nestlen - 1, &ttranslen);
|
|
xfree (nestret);
|
|
|
|
- if ((rflags & P_DQUOTE) == 0)
|
|
+ if (extended_quote || (rflags & P_DQUOTE) == 0)
|
|
{
|
|
nestret = sh_single_quote (ttrans);
|
|
free (ttrans);
|