aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-glob
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-06-18 16:29:32 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-06-18 16:29:32 +0000
commitab876cd107fe6ca274f58bae3264396745d8e5f9 (patch)
treec94ecba9c7d10af007294333e9b4c80efe079cfb /shell/hush_test/hush-glob
parent985de15bf3f39b5e32e34cadaf6947708197f018 (diff)
downloadbusybox-w32-ab876cd107fe6ca274f58bae3264396745d8e5f9.tar.gz
busybox-w32-ab876cd107fe6ca274f58bae3264396745d8e5f9.tar.bz2
busybox-w32-ab876cd107fe6ca274f58bae3264396745d8e5f9.zip
hush: add testsuite for "no globbing in redirection" rule.
simplify redirection habdling
Diffstat (limited to 'shell/hush_test/hush-glob')
-rw-r--r--shell/hush_test/hush-glob/glob_redir.right2
-rwxr-xr-xshell/hush_test/hush-glob/glob_redir.tests9
2 files changed, 11 insertions, 0 deletions
diff --git a/shell/hush_test/hush-glob/glob_redir.right b/shell/hush_test/hush-glob/glob_redir.right
new file mode 100644
index 000000000..fbd0309b0
--- /dev/null
+++ b/shell/hush_test/hush-glob/glob_redir.right
@@ -0,0 +1,2 @@
1z.tmp:
2?.tmp: TEST
diff --git a/shell/hush_test/hush-glob/glob_redir.tests b/shell/hush_test/hush-glob/glob_redir.tests
new file mode 100755
index 000000000..621d12017
--- /dev/null
+++ b/shell/hush_test/hush-glob/glob_redir.tests
@@ -0,0 +1,9 @@
1# Redirections are not globbed.
2# bash:
3# if run as "sh", they are not globbed, but
4# if run as "bash", they are!
5>z.tmp
6echo TEST >?.tmp
7echo 'z.tmp:' `cat 'z.tmp'`
8echo '?.tmp:' `cat '?.tmp'`
9rm 'z.tmp' '?.tmp'