aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-vars
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-05-22 00:26:06 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-05-22 00:26:06 +0200
commita6ad397ea92cd9c53973243728d3e52640fe63ec (patch)
tree058f34aaf8877c15a1c667efaa491267f046c7e7 /shell/hush_test/hush-vars
parent7436950a7516d1f4498285ccc81bf6d926f3af5e (diff)
downloadbusybox-w32-a6ad397ea92cd9c53973243728d3e52640fe63ec.tar.gz
busybox-w32-a6ad397ea92cd9c53973243728d3e52640fe63ec.tar.bz2
busybox-w32-a6ad397ea92cd9c53973243728d3e52640fe63ec.zip
hush: fix more obscure ${var%...} cases
function old new delta add_till_closing_paren 313 359 +46 builtin_exit 48 47 -1 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-vars')
-rw-r--r--shell/hush_test/hush-vars/var_posix1.right1
-rwxr-xr-xshell/hush_test/hush-vars/var_posix1.tests1
2 files changed, 2 insertions, 0 deletions
diff --git a/shell/hush_test/hush-vars/var_posix1.right b/shell/hush_test/hush-vars/var_posix1.right
index 813437e2f..7ff618ad0 100644
--- a/shell/hush_test/hush-vars/var_posix1.right
+++ b/shell/hush_test/hush-vars/var_posix1.right
@@ -37,4 +37,5 @@ ababcdcd_tail
37ababcdcd 37ababcdcd
38ab 38ab
39ab 39ab
40ab
40End 41End
diff --git a/shell/hush_test/hush-vars/var_posix1.tests b/shell/hush_test/hush-vars/var_posix1.tests
index e48fd98c7..82abe8198 100755
--- a/shell/hush_test/hush-vars/var_posix1.tests
+++ b/shell/hush_test/hush-vars/var_posix1.tests
@@ -47,5 +47,6 @@ echo ${var%\\*}
47 47
48a=ab}; echo ${a%\}}; 48a=ab}; echo ${a%\}};
49a=abc; c=c; echo ${a%${c}} 49a=abc; c=c; echo ${a%${c}}
50a=ab{{c; echo ${a%`echo {{c`}
50 51
51echo End 52echo End