aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-bugs
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-06-14 15:50:55 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-06-14 15:50:55 +0000
commitdd316dd283704b9adb588c3fb7cdec6ba5fbceb8 (patch)
tree7e5a4f524e01190d04bc79a4814c4ff6dce9d40d /shell/hush_test/hush-bugs
parenta84420062a1e7a6e149b7d1ca77e1a787e55d45b (diff)
downloadbusybox-w32-dd316dd283704b9adb588c3fb7cdec6ba5fbceb8.tar.gz
busybox-w32-dd316dd283704b9adb588c3fb7cdec6ba5fbceb8.tar.bz2
busybox-w32-dd316dd283704b9adb588c3fb7cdec6ba5fbceb8.zip
hush: add support for ':'; create testsuite entries
text data bss dec hex filename 809569 612 7044 817225 c7849 busybox_old 809528 612 7044 817184 c7820 busybox_unstripped
Diffstat (limited to 'shell/hush_test/hush-bugs')
-rw-r--r--shell/hush_test/hush-bugs/glob_and_assign.right2
-rwxr-xr-xshell/hush_test/hush-bugs/glob_and_assign.tests18
-rw-r--r--shell/hush_test/hush-bugs/glob_and_vars.right1
-rwxr-xr-xshell/hush_test/hush-bugs/glob_and_vars.tests2
-rw-r--r--shell/hush_test/hush-bugs/while_in_subshell.right1
-rwxr-xr-xshell/hush_test/hush-bugs/while_in_subshell.tests2
6 files changed, 26 insertions, 0 deletions
diff --git a/shell/hush_test/hush-bugs/glob_and_assign.right b/shell/hush_test/hush-bugs/glob_and_assign.right
new file mode 100644
index 000000000..dae832361
--- /dev/null
+++ b/shell/hush_test/hush-bugs/glob_and_assign.right
@@ -0,0 +1,2 @@
1ZVAR=z.map
2*.map
diff --git a/shell/hush_test/hush-bugs/glob_and_assign.tests b/shell/hush_test/hush-bugs/glob_and_assign.tests
new file mode 100755
index 000000000..ea11e364b
--- /dev/null
+++ b/shell/hush_test/hush-bugs/glob_and_assign.tests
@@ -0,0 +1,18 @@
1## # bash zbad2
2## ZVAR=z.map
3## *.map
4## # hush zbad2
5## ZVAR=z.map
6## z.map <====== !!!
7
8## hush does globbing for "VAR=val" too!
9## it should do it only for non-assignments.
10## even if word looks like assignment, it can be non-assignment:
11## ZVAR=*.map /bin/echo ZVAR=*.map
12## ^dont_glob ^glob
13
14>ZVAR=z.map
15ZVAR=*.map /bin/echo ZVAR=*.map
16ZVAR=*.map
17echo "$ZVAR"
18rm ZVAR=z.map
diff --git a/shell/hush_test/hush-bugs/glob_and_vars.right b/shell/hush_test/hush-bugs/glob_and_vars.right
new file mode 100644
index 000000000..3ac7ec5ff
--- /dev/null
+++ b/shell/hush_test/hush-bugs/glob_and_vars.right
@@ -0,0 +1 @@
./glob_and_vars.right ./glob_and_vars.tests
diff --git a/shell/hush_test/hush-bugs/glob_and_vars.tests b/shell/hush_test/hush-bugs/glob_and_vars.tests
new file mode 100755
index 000000000..c8e0c067d
--- /dev/null
+++ b/shell/hush_test/hush-bugs/glob_and_vars.tests
@@ -0,0 +1,2 @@
1v=.
2echo $v/glob_and_vars.*
diff --git a/shell/hush_test/hush-bugs/while_in_subshell.right b/shell/hush_test/hush-bugs/while_in_subshell.right
new file mode 100644
index 000000000..290d39b7e
--- /dev/null
+++ b/shell/hush_test/hush-bugs/while_in_subshell.right
@@ -0,0 +1 @@
OK: 0
diff --git a/shell/hush_test/hush-bugs/while_in_subshell.tests b/shell/hush_test/hush-bugs/while_in_subshell.tests
new file mode 100755
index 000000000..def8e092b
--- /dev/null
+++ b/shell/hush_test/hush-bugs/while_in_subshell.tests
@@ -0,0 +1,2 @@
1(while true; do exit; done)
2echo OK: $?