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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=274854
@ -337,7 +337,7 @@ exptilde(char *p, int flag)
|
||||
if (home == NULL || *home == '\0')
|
||||
return (startp);
|
||||
if (quotes)
|
||||
STPUTS_QUOTES(home, SQSYNTAX, expdest);
|
||||
STPUTS_QUOTES(home, DQSYNTAX, expdest);
|
||||
else
|
||||
STPUTS(home, expdest);
|
||||
return (p);
|
||||
|
Loading…
Reference in New Issue
Block a user