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:
parent
01ce53ab1c
commit
c11e75cfcf
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue