ash: parser: Only accept single-digit parameter expansion outside of braces
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 17 Feb 2020 09:15:35 +0000 (10:15 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 17 Feb 2020 09:15:35 +0000 (10:15 +0100)
commitc2ce888030b6b880b3229520a8ff7d7026248a9a
tree2b9d9032ff83d7a26cd54ea8c4f1c098f6ed3626
parent3f4847b6d9198a359e98933271af4630b3c41f0a
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>
shell/ash.c
shell/ash_test/ash-vars/var_10.right [new file with mode: 0644]
shell/ash_test/ash-vars/var_10.tests [new file with mode: 0755]
shell/hush_test/hush-vars/var_10.right [new file with mode: 0644]
shell/hush_test/hush-vars/var_10.tests [new file with mode: 0755]