diff options
Diffstat (limited to 'tools/regression/bin/sh/builtins/break3.0')
-rw-r--r-- | tools/regression/bin/sh/builtins/break3.0 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/builtins/break3.0 b/tools/regression/bin/sh/builtins/break3.0 new file mode 100644 index 0000000..10a5ca8 --- /dev/null +++ b/tools/regression/bin/sh/builtins/break3.0 @@ -0,0 +1,15 @@ +# $FreeBSD$ + +# 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 |