From a4a58620d3384556414b3d9e2b94bbbb143fbf4a Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sun, 14 Mar 2010 13:51:12 +0000 Subject: [PATCH] sh: Add test for redirection error on subshell (should not abort). --- tools/regression/bin/sh/errors/redirection-error5.0 | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tools/regression/bin/sh/errors/redirection-error5.0 diff --git a/tools/regression/bin/sh/errors/redirection-error5.0 b/tools/regression/bin/sh/errors/redirection-error5.0 new file mode 100644 index 000000000000..1fcd47eebf96 --- /dev/null +++ b/tools/regression/bin/sh/errors/redirection-error5.0 @@ -0,0 +1,5 @@ +# $FreeBSD$ +# A redirection error on a subshell should not abort the shell. +exec 2>/dev/null +( echo bad )