From c2ce888030b6b880b3229520a8ff7d7026248a9a Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 17 Feb 2020 10:15:35 +0100 Subject: 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 Signed-off-by: Denys Vlasenko --- shell/hush_test/hush-vars/var_10.right | 3 +++ shell/hush_test/hush-vars/var_10.tests | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 shell/hush_test/hush-vars/var_10.right create mode 100755 shell/hush_test/hush-vars/var_10.tests (limited to 'shell/hush_test') diff --git a/shell/hush_test/hush-vars/var_10.right b/shell/hush_test/hush-vars/var_10.right new file mode 100644 index 0000000..675ab45 --- /dev/null +++ b/shell/hush_test/hush-vars/var_10.right @@ -0,0 +1,3 @@ +Zero:0 +One:1 +Done:0 diff --git a/shell/hush_test/hush-vars/var_10.tests b/shell/hush_test/hush-vars/var_10.tests new file mode 100755 index 0000000..7364efb --- /dev/null +++ b/shell/hush_test/hush-vars/var_10.tests @@ -0,0 +1,4 @@ +set -- : 2 3 4 5 6 7 8 9 ten eleven +echo Zero$10 +echo One$11 +echo Done:$? -- cgit v1.1