ash: error out on ${#1#}, ${#$11}, ${#11#}

Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Cristian Ionescu-Idbohrn 2009-10-05 02:07:23 +02:00 committed by Denys Vlasenko
parent 4d8873f997
commit 301f5ecb8d

View File

@ -11291,6 +11291,8 @@ parsesub: {
badsub:
raise_error_syntax("bad substitution");
}
if (c != '}' && subtype == VSLENGTH)
goto badsub;
STPUTC('=', out);
flags = 0;