Fix ${#varname} (getting length of string) when in double-quotes.

Approved-by:	jkh

PR:		bin/12137
Submitted by:	"Danny J. Zerkel" <dzerkel@columbus.rr.com>
This commit is contained in:
Martin Cracauer 2000-02-15 08:00:11 +00:00
parent 01ce53ab1c
commit c11e75cfcf
1 changed files with 1 additions and 1 deletions

View File

@ -1248,7 +1248,7 @@ badsub: synerror("Bad substitution");
} else { } else {
pungetc(); pungetc();
} }
if (dblquote || arinest) if (subtype != VSLENGTH && (dblquote || arinest))
flags |= VSQUOTE; flags |= VSQUOTE;
*(stackblock() + typeloc) = subtype | flags; *(stackblock() + typeloc) = subtype | flags;
if (subtype != VSNORMAL) if (subtype != VSNORMAL)