summary refs log tree commit diff
path: root/bin/1sh/tests/builtins/eval7.0
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bin/1sh/tests/builtins/eval7.09
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/1sh/tests/builtins/eval7.0 b/bin/1sh/tests/builtins/eval7.0
new file mode 100644
index 00000000..b9b09d5a
--- /dev/null
+++ b/bin/1sh/tests/builtins/eval7.0
@@ -0,0 +1,9 @@
+# $FreeBSD: releng/12.1/bin/sh/tests/builtins/eval7.0 272983 2014-10-12 13:12:06Z jilles $
+# Assumes that break can break out of a loop outside eval.
+
+while :; do
+	eval "break
+echo bad1"
+	echo bad2
+	exit 3
+done