svn commit: [25868] trunk/busybox/shell/hush_test/hush-vars

vapier at busybox.net vapier at busybox.net
Sat Mar 28 21:06:38 UTC 2009


Author: vapier
Date: 2009-03-28 21:06:38 +0000 (Sat, 28 Mar 2009)
New Revision: 25868

Log:
test for invalid named variables

Added:
   trunk/busybox/shell/hush_test/hush-vars/var3.right
   trunk/busybox/shell/hush_test/hush-vars/var3.tests


Changeset:
Added: trunk/busybox/shell/hush_test/hush-vars/var3.right
===================================================================
--- trunk/busybox/shell/hush_test/hush-vars/var3.right	                        (rev 0)
+++ trunk/busybox/shell/hush_test/hush-vars/var3.right	2009-03-28 21:06:38 UTC (rev 25868)
@@ -0,0 +1,3 @@
+hush: syntax error: unterminated ${name}
+hush: syntax error: unterminated ${name}
+hush: syntax error: unterminated ${name}

Added: trunk/busybox/shell/hush_test/hush-vars/var3.tests
===================================================================
--- trunk/busybox/shell/hush_test/hush-vars/var3.tests	                        (rev 0)
+++ trunk/busybox/shell/hush_test/hush-vars/var3.tests	2009-03-28 21:06:38 UTC (rev 25868)
@@ -0,0 +1,4 @@
+# reject invalid vars
+hush -c 'echo ${1q}'
+hush -c 'echo ${&}'
+hush -c 'echo ${$}'


Property changes on: trunk/busybox/shell/hush_test/hush-vars/var3.tests
___________________________________________________________________
Added: svn:executable
   + *



More information about the busybox-cvs mailing list