From ab876cd107fe6ca274f58bae3264396745d8e5f9 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Wed, 18 Jun 2008 16:29:32 +0000 Subject: hush: add testsuite for "no globbing in redirection" rule. simplify redirection habdling --- shell/hush_test/hush-glob/glob_redir.tests | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 shell/hush_test/hush-glob/glob_redir.tests (limited to 'shell/hush_test/hush-glob/glob_redir.tests') 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 @@ +# 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' -- cgit v1.2.3