sh: Use DQSYNTAX only while expanding, not SQSYNTAX.
Quoting during expansion only cares about CCTL, which is the same for DQSYNTAX and SQSYNTAX.
This commit is contained in:
parent
8b94b5836c
commit
08dc8cf90c
@ -337,7 +337,7 @@ done:
|
|||||||
if (home == NULL || *home == '\0')
|
if (home == NULL || *home == '\0')
|
||||||
return (startp);
|
return (startp);
|
||||||
if (quotes)
|
if (quotes)
|
||||||
STPUTS_QUOTES(home, SQSYNTAX, expdest);
|
STPUTS_QUOTES(home, DQSYNTAX, expdest);
|
||||||
else
|
else
|
||||||
STPUTS(home, expdest);
|
STPUTS(home, expdest);
|
||||||
return (p);
|
return (p);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user