summaryrefslogtreecommitdiff
path: root/shell/hush_test
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-06-10 20:13:40 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-06-10 20:13:40 +0000
commit43360e51781942730f91bb19821e3f8f1087e4fa (patch)
treeaed87780129aa4f24a47c868c1067bf44b92a55b /shell/hush_test
parent2e76c3f9016f674dad7a38ec7ba5b068d233f189 (diff)
downloadbusybox-w32-43360e51781942730f91bb19821e3f8f1087e4fa.tar.gz
busybox-w32-43360e51781942730f91bb19821e3f8f1087e4fa.tar.bz2
busybox-w32-43360e51781942730f91bb19821e3f8f1087e4fa.zip
hush: fix escaping of \[*?; add testsuites for these and for globbing
Diffstat (limited to 'shell/hush_test')
-rw-r--r--shell/hush_test/hush-glob/glob1.right2
-rwxr-xr-xshell/hush_test/hush-glob/glob1.tests2
-rw-r--r--shell/hush_test/hush-parsing/escape1.right4
-rwxr-xr-xshell/hush_test/hush-parsing/escape1.tests4
-rw-r--r--shell/hush_test/hush-parsing/escape2.right4
-rwxr-xr-xshell/hush_test/hush-parsing/escape2.tests4
6 files changed, 20 insertions, 0 deletions
diff --git a/shell/hush_test/hush-glob/glob1.right b/shell/hush_test/hush-glob/glob1.right
new file mode 100644
index 000000000..f29ab4e65
--- /dev/null
+++ b/shell/hush_test/hush-glob/glob1.right
@@ -0,0 +1,2 @@
1glob1.tests
2glob1.tests
diff --git a/shell/hush_test/hush-glob/glob1.tests b/shell/hush_test/hush-glob/glob1.tests
new file mode 100755
index 000000000..f980ce064
--- /dev/null
+++ b/shell/hush_test/hush-glob/glob1.tests
@@ -0,0 +1,2 @@
1echo *glob1?t[e]sts*
2echo "glob1"?'t'[e]s*
diff --git a/shell/hush_test/hush-parsing/escape1.right b/shell/hush_test/hush-parsing/escape1.right
new file mode 100644
index 000000000..1899b87ef
--- /dev/null
+++ b/shell/hush_test/hush-parsing/escape1.right
@@ -0,0 +1,4 @@
1\
2a\b
3\\
4c\\d
diff --git a/shell/hush_test/hush-parsing/escape1.tests b/shell/hush_test/hush-parsing/escape1.tests
new file mode 100755
index 000000000..67cfd1fef
--- /dev/null
+++ b/shell/hush_test/hush-parsing/escape1.tests
@@ -0,0 +1,4 @@
1echo "\\"
2echo a"\\"b
3echo '\\'
4echo c'\\'d
diff --git a/shell/hush_test/hush-parsing/escape2.right b/shell/hush_test/hush-parsing/escape2.right
new file mode 100644
index 000000000..f55fd4a42
--- /dev/null
+++ b/shell/hush_test/hush-parsing/escape2.right
@@ -0,0 +1,4 @@
1*?[a]*
2a*?[a]*b
3*?[a]*
4c*?[a]*d
diff --git a/shell/hush_test/hush-parsing/escape2.tests b/shell/hush_test/hush-parsing/escape2.tests
new file mode 100755
index 000000000..ee718018d
--- /dev/null
+++ b/shell/hush_test/hush-parsing/escape2.tests
@@ -0,0 +1,4 @@
1echo "*?[a]*"
2echo a"*?[a]*"b
3echo '*?[a]*'
4echo c'*?[a]*'d