summary refs log tree commit diff
path: root/bin/cash/tests/builtins/break3.0
diff options
context:
space:
mode:
Diffstat (limited to 'bin/cash/tests/builtins/break3.0')
-rw-r--r--bin/cash/tests/builtins/break3.015
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/cash/tests/builtins/break3.0 b/bin/cash/tests/builtins/break3.0
new file mode 100644
index 00000000..8a239be6
--- /dev/null
+++ b/bin/cash/tests/builtins/break3.0
@@ -0,0 +1,15 @@
+# $FreeBSD: releng/12.0/bin/sh/tests/builtins/break3.0 211612 2010-08-22 11:07:46Z jilles $
+
+# We accept this and people might rely on it.
+# However, various other shells do not accept it.
+
+f() {
+	break
+	echo bad1
+}
+
+while :; do
+	f
+	echo bad2
+	exit 2
+done
>Apply some bold to trips renderingJune McEnroe 2024-09-08Render trips hopefully more efficientlyJune McEnroe 2024-09-08Allow removing bodies and lensesJune McEnroe 2024-09-08Limit body width so it looks less silly on desktopJune McEnroe 2024-09-07Handle no film being loadedJune McEnroe 2024-09-07Fancy up the text a littleJune McEnroe