aboutsummaryrefslogtreecommitdiffstats
path: root/shell_cmds/sh/tests/builtins/break5.4
diff options
context:
space:
mode:
Diffstat (limited to 'shell_cmds/sh/tests/builtins/break5.4')
-rw-r--r--shell_cmds/sh/tests/builtins/break5.412
1 files changed, 12 insertions, 0 deletions
diff --git a/shell_cmds/sh/tests/builtins/break5.4 b/shell_cmds/sh/tests/builtins/break5.4
new file mode 100644
index 0000000..a29f317
--- /dev/null
+++ b/shell_cmds/sh/tests/builtins/break5.4
@@ -0,0 +1,12 @@
+# $FreeBSD: head/bin/sh/tests/builtins/break5.4 251180 2013-05-31 14:45:25Z jilles $
+
+# Although this is not specified by POSIX, some configure scripts (gawk 4.1.0)
+# appear to depend on it.
+# In some uncommitted code, the subshell environment corrupted the outer
+# shell environment's state.
+
+(for i in a b c; do
+ exit 3
+done)
+break
+exit 4