freebsd-nq/bin/sh/tests/builtins/break6.0
Jilles Tjoelker 4d34663be3 sh: Allow arbitrarily large numbers in break and continue.
The argument is capped to loopnest, so strtol()'s [ERANGE] can be ignored.
2014-07-20 20:29:09 +00:00

9 lines
125 B
Plaintext

# $FreeBSD$
# Per POSIX, this need only work if LONG_MAX > 4294967295.
while :; do
break 4294967296
echo bad
exit 3
done