aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2020-02-17 10:15:35 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2020-02-17 10:15:35 +0100
commitc2ce888030b6b880b3229520a8ff7d7026248a9a (patch)
tree2b9d9032ff83d7a26cd54ea8c4f1c098f6ed3626 /shell/ash.c
parent3f4847b6d9198a359e98933271af4630b3c41f0a (diff)
downloadbusybox-c2ce888030b6b880b3229520a8ff7d7026248a9a.tar.gz
ash: parser: Only accept single-digit parameter expansion outside of braces
Upstream commit: Date: Mon, 27 May 2019 13:39:37 +0800 parser: Only accept single-digit parameter expansion outside of braces This patch should fix the problem. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index a25d14de0..90496ba7e 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -12602,7 +12602,7 @@ parsesub: {
do {
STPUTC(c, out);
c = pgetc_eatbnl();
- } while (isdigit(c));
+ } while (!subtype && isdigit(c));
} else if (c != '}') {
/* $[{[#]]<specialchar>[}] */
int cc = c;