From a355eb9e1a9b28b05632e88c0f7632caddc07e0d Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Mon, 27 Dec 2010 23:56:03 +0000 Subject: [PATCH] sh: Add a testcase for cmdsubst errors that already works properly. If a command substitution consists of one special builtin and there is a redirection error, this should not abort the outer shell. It was fixed in r201366 by ignoring special builtin properties for command substitutions consisting of one builtin. --- tools/regression/bin/sh/expansion/cmdsubst4.0 | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tools/regression/bin/sh/expansion/cmdsubst4.0 diff --git a/tools/regression/bin/sh/expansion/cmdsubst4.0 b/tools/regression/bin/sh/expansion/cmdsubst4.0 new file mode 100644 index 000000000000..ee1ce73e7e38 --- /dev/null +++ b/tools/regression/bin/sh/expansion/cmdsubst4.0 @@ -0,0 +1,4 @@ +# $FreeBSD$ + +exec 2>/dev/null +! y=$(: