mirror of
https://github.com/sheumann/hush.git
synced 2024-09-12 00:55:11 +00:00
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:
parent
4d8873f997
commit
301f5ecb8d
@ -11291,6 +11291,8 @@ parsesub: {
|
|||||||
badsub:
|
badsub:
|
||||||
raise_error_syntax("bad substitution");
|
raise_error_syntax("bad substitution");
|
||||||
}
|
}
|
||||||
|
if (c != '}' && subtype == VSLENGTH)
|
||||||
|
goto badsub;
|
||||||
|
|
||||||
STPUTC('=', out);
|
STPUTC('=', out);
|
||||||
flags = 0;
|
flags = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user