From c4cf542c575068d55368e771abf6c358bfebf5d3 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 2 Oct 2016 17:55:51 +0200 Subject: sh testsuite: create hush-redir/* and move files around Signed-off-by: Denys Vlasenko --- shell/hush_test/hush-redir/redir3.tests | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 shell/hush_test/hush-redir/redir3.tests (limited to 'shell/hush_test/hush-redir/redir3.tests') diff --git a/shell/hush_test/hush-redir/redir3.tests b/shell/hush_test/hush-redir/redir3.tests new file mode 100755 index 000000000..7c28e4324 --- /dev/null +++ b/shell/hush_test/hush-redir/redir3.tests @@ -0,0 +1,9 @@ +echo Error >/does/not/exist; echo One:$? +t=BAD +t=Ok >>/cant/be/created; echo One:$? +echo $t +! >/cant/be/created; echo Zero:$? +exec >/cant/be/created; echo One:$? +exec /bin/true >/cant/be/created; echo One:$? +! exec /bin/true >/cant/be/created; echo Zero:$? +echo Done -- cgit v1.2.3