|
break
Exit from a for
, while
, until
,
or select
loop
SYNTAX break [n]
If n is supplied, the nth enclosing loop is exited. n
must be greater than or equal to 1.
The return status is zero unless n is not greater than or equal to
1.
break is a POSIX `special' builtin
Related commands:
for - Expand words, and execute commands
select - Accept keyboard input
until - Execute commands (until error)
while - Execute commands
Equivalent Windows NT command:
GOTO - Direct a batch program to jump to a labelled
line