summaryrefslogtreecommitdiffstats
path: root/bin/sh/expand.c
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2014-11-22 16:03:18 +0000
committerjilles <jilles@FreeBSD.org>2014-11-22 16:03:18 +0000
commitb6dc63376d90cee3e96495640ed03a966e64f287 (patch)
treed9ea238ec7280c502bddb4a15c3a1f86605e2c75 /bin/sh/expand.c
parent2efae2e6b18d927420b0efb91643ae5aaecb550a (diff)
downloadFreeBSD-src-b6dc63376d90cee3e96495640ed03a966e64f287.zip
FreeBSD-src-b6dc63376d90cee3e96495640ed03a966e64f287.tar.gz
sh: Use DQSYNTAX only while expanding, not SQSYNTAX.
Quoting during expansion only cares about CCTL, which is the same for DQSYNTAX and SQSYNTAX.
Diffstat (limited to 'bin/sh/expand.c')
-rw-r--r--bin/sh/expand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/expand.c b/bin/sh/expand.c
index d4c4c5a..fd8b996 100644
--- a/bin/sh/expand.c
+++ b/bin/sh/expand.c
@@ -337,7 +337,7 @@ done:
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);
OpenPOWER on IntegriCloud