breakexit from loop in a KornShell script |
KornShell Built-in |
|
|
break [
number]
break exits from a
for,
select,
until, or
while loop in a KornShell script.
If
number is given,
break exits from the given number
of enclosing loops. The default value of
number is 1.
break always exits with an exit status of zero.
POSIX.2.
x/OPEN Portability Guide 4.0.
break is a built-in command of the Bourne Shell and
KornShell on UNIX systems.
The
select command and the ability to exit from it are
extensions found in the KornShell.
MKS Toolkit implements
break as a special built-in command of
the MKS KornShell.
- Commands:
continue,
sh