From: Denis Vlasenko Date: Sat, 12 Apr 2008 23:02:43 +0000 (-0000) Subject: ash: a bit more complete POSIX subst testsuite entry X-Git-Tag: 1_11_0~346 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f78a656f7c287c0963d985490b3e77751b4a81bc;p=oweals%2Fbusybox.git ash: a bit more complete POSIX subst testsuite entry --- diff --git a/shell/ash_test/ash-vars/var_posix1.right b/shell/ash_test/ash-vars/var_posix1.right index 013b2230b..55f35798a 100644 --- a/shell/ash_test/ash-vars/var_posix1.right +++ b/shell/ash_test/ash-vars/var_posix1.right @@ -3,8 +3,15 @@ abcdcd abcdcd cdcd babcdcd +babcdcd +ababcdcd + ababcd ababcd ababcd abab ababcdc +ababcdc +ababcdcd + +end diff --git a/shell/ash_test/ash-vars/var_posix1.tests b/shell/ash_test/ash-vars/var_posix1.tests index a7c85cbb0..4139e2cc3 100755 --- a/shell/ash_test/ash-vars/var_posix1.tests +++ b/shell/ash_test/ash-vars/var_posix1.tests @@ -1,13 +1,21 @@ var=ababcdcd echo ${var#ab} -echo ${var#a*b} echo ${var##ab} +echo ${var#a*b} echo ${var##a*b} echo ${var#?} +echo ${var##?} +echo ${var#*} +echo ${var##*} echo ${var%cd} -echo ${var%c*d} echo ${var%%cd} +echo ${var%c*d} echo ${var%%c*d} echo ${var%?} +echo ${var%%?} +echo ${var%*} +echo ${var%%*} + +echo end