aboutsummaryrefslogtreecommitdiffstats
path: root/shell_cmds/sh/tests/builtins/break2.0
diff options
context:
space:
mode:
Diffstat (limited to 'shell_cmds/sh/tests/builtins/break2.0')
-rw-r--r--shell_cmds/sh/tests/builtins/break2.012
1 files changed, 12 insertions, 0 deletions
diff --git a/shell_cmds/sh/tests/builtins/break2.0 b/shell_cmds/sh/tests/builtins/break2.0
new file mode 100644
index 0000000..f836e31
--- /dev/null
+++ b/shell_cmds/sh/tests/builtins/break2.0
@@ -0,0 +1,12 @@
+# $FreeBSD: head/bin/sh/tests/builtins/break2.0 211467 2010-08-18 20:26:50Z jilles $
+
+# It is not immediately obvious that this should work, and someone probably
+# relies on it.
+
+while :; do
+ trap 'break' USR1
+ kill -USR1 $$
+ echo bad
+ exit 1
+done
+echo good