aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>2009-10-05 02:07:23 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-10-05 02:07:23 +0200
commit301f5ecb8d5fc1ed85942dd85d58f27a0c9a518a (patch)
tree4df0dda30149bbf7054867203af0910d6cb113bf
parent4d8873f997053aa08c5932594b4078846115b861 (diff)
downloadbusybox-w32-301f5ecb8d5fc1ed85942dd85d58f27a0c9a518a.tar.gz
busybox-w32-301f5ecb8d5fc1ed85942dd85d58f27a0c9a518a.tar.bz2
busybox-w32-301f5ecb8d5fc1ed85942dd85d58f27a0c9a518a.zip
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>
-rw-r--r--shell/ash.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 9f1f8a4de..44d3a99a7 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -11291,6 +11291,8 @@ parsesub: {
11291 badsub: 11291 badsub:
11292 raise_error_syntax("bad substitution"); 11292 raise_error_syntax("bad substitution");
11293 } 11293 }
11294 if (c != '}' && subtype == VSLENGTH)
11295 goto badsub;
11294 11296
11295 STPUTC('=', out); 11297 STPUTC('=', out);
11296 flags = 0; 11298 flags = 0;