From a107ef2a6ace98c51473dc3153564a44b260bc6f Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 6 Jul 2017 20:36:40 +0200 Subject: hush: rename hush-redir/redir3.tests (ash has redir3.tests which id different) Signed-off-by: Denys Vlasenko --- shell/hush_test/hush-redir/redir_errors.tests | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 shell/hush_test/hush-redir/redir_errors.tests (limited to 'shell/hush_test/hush-redir/redir_errors.tests') diff --git a/shell/hush_test/hush-redir/redir_errors.tests b/shell/hush_test/hush-redir/redir_errors.tests new file mode 100755 index 000000000..7c28e4324 --- /dev/null +++ b/shell/hush_test/hush-redir/redir_errors.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