BREAK ( 1 ) USER COMMANDSBREAK ( 1 )


NAME

break - break out of loop

SYNOPSIS

break [ options ] [n]

DESCRIPTION

break is a shell special built-in that exits the smallest enclosing for, select, while, or until loop, or the n-th enclosing loop if n is specified. Execution continues at the command following the loop(s).

If n is given, it must be a positive integer >= 1. If n is larger than the number of enclosing loops, the last enclosing loop will be exited.

EXIT STATUS

0

SEE ALSO

continue(1), return(1)

IMPLEMENTATION

version
break (AT&T Research) 1999-04-07
author
David Korn <dgkorn@gmail.com>
copyright
Copyright © 1982-2010 AT&T Intellectual Property
license
http://www.opensource.org/licenses/cpl1.0.txt