summary refs log tree commit diff
path: root/bin/cash/tests/execution/set-n1.0
diff options
context:
space:
mode:
Diffstat (limited to 'bin/cash/tests/execution/set-n1.0')
-rw-r--r--bin/cash/tests/execution/set-n1.07
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/cash/tests/execution/set-n1.0 b/bin/cash/tests/execution/set-n1.0
new file mode 100644
index 00000000..c1ee4c50
--- /dev/null
+++ b/bin/cash/tests/execution/set-n1.0
@@ -0,0 +1,7 @@
+# $FreeBSD: releng/12.0/bin/sh/tests/execution/set-n1.0 222661 2011-06-03 21:17:42Z jilles $
+
+v=$( ($SH -n <<'EOF'
+for
+EOF
+) 2>&1 >/dev/null)
+[ $? -ne 0 ] && [ -n "$v" ]