svn commit: trunk/busybox/shell/ash_test/ash-vars

vda at busybox.net vda at busybox.net
Sat Apr 12 23:02:44 UTC 2008


Author: vda
Date: 2008-04-12 16:02:43 -0700 (Sat, 12 Apr 2008)
New Revision: 21723

Log:
ash: a bit more complete POSIX subst testsuite entry



Modified:
   trunk/busybox/shell/ash_test/ash-vars/var_posix1.right
   trunk/busybox/shell/ash_test/ash-vars/var_posix1.tests


Changeset:
Modified: trunk/busybox/shell/ash_test/ash-vars/var_posix1.right
===================================================================
--- trunk/busybox/shell/ash_test/ash-vars/var_posix1.right	2008-04-12 22:55:33 UTC (rev 21722)
+++ trunk/busybox/shell/ash_test/ash-vars/var_posix1.right	2008-04-12 23:02:43 UTC (rev 21723)
@@ -3,8 +3,15 @@
 abcdcd
 cdcd
 babcdcd
+babcdcd
+ababcdcd
+
 ababcd
 ababcd
 ababcd
 abab
 ababcdc
+ababcdc
+ababcdcd
+
+end

Modified: trunk/busybox/shell/ash_test/ash-vars/var_posix1.tests
===================================================================
--- trunk/busybox/shell/ash_test/ash-vars/var_posix1.tests	2008-04-12 22:55:33 UTC (rev 21722)
+++ trunk/busybox/shell/ash_test/ash-vars/var_posix1.tests	2008-04-12 23:02:43 UTC (rev 21723)
@@ -1,13 +1,21 @@
 var=ababcdcd
 
 echo ${var#ab}
+echo ${var##ab}
 echo ${var#a*b}
-echo ${var##ab}
 echo ${var##a*b}
 echo ${var#?}
+echo ${var##?}
+echo ${var#*}
+echo ${var##*}
 
 echo ${var%cd}
+echo ${var%%cd}
 echo ${var%c*d}
-echo ${var%%cd}
 echo ${var%%c*d}
 echo ${var%?}
+echo ${var%%?}
+echo ${var%*}
+echo ${var%%*}
+
+echo end




More information about the busybox-cvs mailing list