aboutsummaryrefslogtreecommitdiffstats
path: root/shell_cmds/sh/tests/execution/set-n3.0
diff options
context:
space:
mode:
Diffstat (limited to 'shell_cmds/sh/tests/execution/set-n3.0')
-rw-r--r--shell_cmds/sh/tests/execution/set-n3.04
1 files changed, 4 insertions, 0 deletions
diff --git a/shell_cmds/sh/tests/execution/set-n3.0 b/shell_cmds/sh/tests/execution/set-n3.0
new file mode 100644
index 0000000..5af1bc4
--- /dev/null
+++ b/shell_cmds/sh/tests/execution/set-n3.0
@@ -0,0 +1,4 @@
+# $FreeBSD: head/bin/sh/tests/execution/set-n3.0 222661 2011-06-03 21:17:42Z jilles $
+
+v=$( ($SH -nc 'for') 2>&1 >/dev/null)
+[ $? -ne 0 ] && [ -n "$v" ]