break

exit from loop in a KornShell script 

KornShell Built-in


SYNOPSIS

break [number]


DESCRIPTION

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.


DIAGNOSTICS

break always exits with an exit status of zero.


PORTABILITY

POSIX.2. x/OPEN Portability Guide 4.0. Windows 2000. Windows XP. Windows Server 2003. Windows Vista.

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.


NOTE

MKS Toolkit implements break as a special built-in command of the MKS KornShell. The break command supplied with MKS Toolkit should not be confused with the internal Windows break command.


AVAILABILITY

MKS Toolkit for Power Users
MKS Toolkit for System Administrators
MKS Toolkit for Developers
MKS Toolkit for Interoperability
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Commands:
continue, sh


MKS Toolkit 9.2 Documentation Build 16.