aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-misc/redir1.tests
diff options
context:
space:
mode:
Diffstat (limited to 'shell/hush_test/hush-misc/redir1.tests')
-rwxr-xr-xshell/hush_test/hush-misc/redir1.tests6
1 files changed, 6 insertions, 0 deletions
diff --git a/shell/hush_test/hush-misc/redir1.tests b/shell/hush_test/hush-misc/redir1.tests
index 7e204514c..70e9e17f0 100755
--- a/shell/hush_test/hush-misc/redir1.tests
+++ b/shell/hush_test/hush-misc/redir1.tests
@@ -1,5 +1,11 @@
rm shell_test_$$ 2>/dev/null
var=bad
+>shell_test_$$ var=ok
+echo "Test 0: var:$var"
+test -f shell_test_$$ && echo "File created:ok"
+
+rm shell_test_$$ 2>/dev/null
+var=bad
var=ok >shell_test_$$
echo "Test 1: var:$var"
test -f shell_test_$$ && echo "File created:ok"