aboutsummaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-glob/glob_redir.tests
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2015-09-04 03:27:08 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2015-09-04 03:27:08 +0200
commit66a781acb9c3a78f3063d1e691a1b18a5f9f68ab (patch)
tree073d09fba413f09923e0ef3e59c4f762771f8842 /shell/ash_test/ash-glob/glob_redir.tests
parent68acc0f835360d439c65d349812b817b1ce5dc61 (diff)
downloadbusybox-66a781acb9c3a78f3063d1e691a1b18a5f9f68ab.tar.gz
ash: add tests adapted from hush glob tests. glob2.tests currently fails
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test/ash-glob/glob_redir.tests')
-rwxr-xr-xshell/ash_test/ash-glob/glob_redir.tests9
1 files changed, 9 insertions, 0 deletions
diff --git a/shell/ash_test/ash-glob/glob_redir.tests b/shell/ash_test/ash-glob/glob_redir.tests
new file mode 100755
index 000000000..621d12017
--- /dev/null
+++ b/shell/ash_test/ash-glob/glob_redir.tests
@@ -0,0 +1,9 @@
+# Redirections are not globbed.
+# bash:
+# if run as "sh", they are not globbed, but
+# if run as "bash", they are!
+>z.tmp
+echo TEST >?.tmp
+echo 'z.tmp:' `cat 'z.tmp'`
+echo '?.tmp:' `cat '?.tmp'`
+rm 'z.tmp' '?.tmp'