summaryrefslogtreecommitdiffstats
path: root/shell_cmds/sh/tests/builtins/break5.4
blob: a29f3177963025ec652255bc548b5611ff9716c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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