summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-misc/redir4.tests
diff options
context:
space:
mode:
authorDenys Vlasenko2016-10-02 17:55:51 +0200
committerDenys Vlasenko2016-10-02 17:55:51 +0200
commitc4cf542c575068d55368e771abf6c358bfebf5d3 (patch)
treeb916ff4bea0671437b80257fa82283ad8e09faab /shell/hush_test/hush-misc/redir4.tests
parent1b73f8471a3694d2e6b035bb7f04e1f4df943f03 (diff)
downloadbusybox-c4cf542c575068d55368e771abf6c358bfebf5d3.zip
busybox-c4cf542c575068d55368e771abf6c358bfebf5d3.tar.gz
sh testsuite: create hush-redir/* and move files around
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-misc/redir4.tests')
-rwxr-xr-xshell/hush_test/hush-misc/redir4.tests85
1 files changed, 0 insertions, 85 deletions
diff --git a/shell/hush_test/hush-misc/redir4.tests b/shell/hush_test/hush-misc/redir4.tests
deleted file mode 100755
index c50b8ce..0000000
--- a/shell/hush_test/hush-misc/redir4.tests
+++ /dev/null
@@ -1,85 +0,0 @@
-rm *shell_test* 2>/dev/null
-
->\shell_test
-echo *shell_test*
-rm *shell_test*
-
->\\shell_test
-echo *shell_test*
-rm *shell_test*
-
->"\shell_test"
-echo *shell_test*
-rm *shell_test*
-
->"\\shell_test"
-echo *shell_test*
-rm *shell_test*
-
-
-cat <<\shell_test
-Here1
-shell_test
-echo Ok1
-
-cat <<\\shell_test
-Here2
-\shell_test
-echo Ok2
-
-cat <<"\shell_test"
-Here3
-\shell_test
-echo Ok3
-
-cat <<"\\shell_test"
-Here4
-\shell_test
-echo Ok4
-
-
-echo Now with variable refs
-i=1
-
-
->\shell_test_$i
-echo *shell_test*
-rm *shell_test*
-
->\\shell_test_$i
-echo *shell_test*
-rm *shell_test*
-
->"\shell_test_$i"
-echo *shell_test*
-rm *shell_test*
-
->"\\shell_test_$i"
-echo *shell_test*
-rm *shell_test*
-
-echo Done;exit
-# UNFIXED BUG. bash apparently will expand $i even in terminating delimiter.
-# http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html
-# does not mandate this behavior.
-# This is not likely to be used much in real-world.
-
-cat <<\shell_test_$i
-Here1
-shell_test_$i
-echo Ok1
-
-cat <<\\shell_test_$i
-Here2
-\shell_test_$i
-echo Ok2
-
-cat <<"\shell_test_$i"
-Here3
-\shell_test_$i
-echo Ok3
-
-cat <<"\\shell_test_$i"
-Here4
-\shell_test_$i
-echo Ok4