aboutsummaryrefslogtreecommitdiffstats
path: root/shell_cmds/sh/tests/builtins/eval7.0
diff options
context:
space:
mode:
Diffstat (limited to 'shell_cmds/sh/tests/builtins/eval7.0')
-rw-r--r--shell_cmds/sh/tests/builtins/eval7.09
1 files changed, 9 insertions, 0 deletions
diff --git a/shell_cmds/sh/tests/builtins/eval7.0 b/shell_cmds/sh/tests/builtins/eval7.0
new file mode 100644
index 0000000..f694e73
--- /dev/null
+++ b/shell_cmds/sh/tests/builtins/eval7.0
@@ -0,0 +1,9 @@
+# $FreeBSD: head/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