diff options
author | jilles <jilles@FreeBSD.org> | 2014-11-22 16:03:18 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2014-11-22 16:03:18 +0000 |
commit | b6dc63376d90cee3e96495640ed03a966e64f287 (patch) | |
tree | d9ea238ec7280c502bddb4a15c3a1f86605e2c75 /bin/sh/expand.c | |
parent | 2efae2e6b18d927420b0efb91643ae5aaecb550a (diff) | |
download | FreeBSD-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.c | 2 |
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); |