summaryrefslogtreecommitdiff
path: root/shell/hush_test
diff options
context:
space:
mode:
authorDenis Vlasenko2008-06-10 18:06:24 +0000
committerDenis Vlasenko2008-06-10 18:06:24 +0000
commit895bea23032221bcc158f447f81abacd046f87b1 (patch)
tree1a1a376d725353210d57a1855a9c50f4224eacca /shell/hush_test
parent46ccdcb96eab18739509078638a0a7b2ae393684 (diff)
downloadbusybox-895bea23032221bcc158f447f81abacd046f87b1.zip
busybox-895bea23032221bcc158f447f81abacd046f87b1.tar.gz
hush: fix some fallout from prev commits, add testsuite
Diffstat (limited to 'shell/hush_test')
-rw-r--r--shell/hush_test/hush-vars/empty.right3
-rwxr-xr-xshell/hush_test/hush-vars/empty.tests7
2 files changed, 10 insertions, 0 deletions
diff --git a/shell/hush_test/hush-vars/empty.right b/shell/hush_test/hush-vars/empty.right
new file mode 100644
index 0000000..2cb3c70
--- /dev/null
+++ b/shell/hush_test/hush-vars/empty.right
@@ -0,0 +1,3 @@
+a b c d e f 1 2 3 4 5 6 7 8 9 0 A B C D E F
+a b c d e f 1 2 3 4 5 6 7 8 9 0 A B C D E F
+a b c d e f 1 2 3 4 5 6 7 8 9 0 A B C D E F
diff --git a/shell/hush_test/hush-vars/empty.tests b/shell/hush_test/hush-vars/empty.tests
new file mode 100755
index 0000000..72ac2c7
--- /dev/null
+++ b/shell/hush_test/hush-vars/empty.tests
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+e=
+
+echo a b c d e f 1 2 3 4 5 6 7 8 9 0 A B C D E F
+echo a $e b $e c $e d $e e $e f $e 1 $e 2 $e 3 $e 4 $e 5 $e 6 $e 7 $e 8 $e 9 $e 0 $e A $e B $e C $e D $e E $e F
+echo $e a $e b $e c $e d $e e $e f $e 1 $e 2 $e 3 $e 4 $e 5 $e 6 $e 7 $e 8 $e 9 $e 0 $e A $e B $e C $e D $e E $e F