summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bin/sh/parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/parser.c b/bin/sh/parser.c
index 3b93bd9..2aa2665 100644
--- a/bin/sh/parser.c
+++ b/bin/sh/parser.c
@@ -1248,7 +1248,7 @@ badsub: synerror("Bad substitution");
} else {
pungetc();
}
- if (dblquote || arinest)
+ if (subtype != VSLENGTH && (dblquote || arinest))
flags |= VSQUOTE;
*(stackblock() + typeloc) = subtype | flags;
if (subtype != VSNORMAL)
OpenPOWER on IntegriCloud