diff options
author | Denis Vlasenko | 2008-06-18 16:29:32 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-06-18 16:29:32 +0000 |
commit | ab876cd107fe6ca274f58bae3264396745d8e5f9 (patch) | |
tree | c94ecba9c7d10af007294333e9b4c80efe079cfb /shell/hush_test/hush-glob/glob_redir.tests | |
parent | 985de15bf3f39b5e32e34cadaf6947708197f018 (diff) | |
download | busybox-ab876cd107fe6ca274f58bae3264396745d8e5f9.zip busybox-ab876cd107fe6ca274f58bae3264396745d8e5f9.tar.gz |
hush: add testsuite for "no globbing in redirection" rule.
simplify redirection habdling
Diffstat (limited to 'shell/hush_test/hush-glob/glob_redir.tests')
-rwxr-xr-x | shell/hush_test/hush-glob/glob_redir.tests | 9 |
1 files changed, 9 insertions, 0 deletions
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 0000000..621d120 --- /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' |