]> git.saurik.com Git - apple/shell_cmds.git/blob - sh/tests/builtins/break1.0
shell_cmds-216.60.1.tar.gz
[apple/shell_cmds.git] / sh / tests / builtins / break1.0
1 # $FreeBSD: head/bin/sh/tests/builtins/break1.0 211349 2010-08-15 21:06:53Z jilles $
2
3 if [ "$1" != nested ]; then
4 while :; do
5 set -- nested
6 . "$0"
7 echo bad2
8 exit 2
9 done
10 exit 0
11 fi
12 # To trigger the bug, the following commands must be at the top level,
13 # with newlines in between.
14 break
15 echo bad1
16 exit 1