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. Windows 7. Windows Server 2008 R2. Windows 8. Windows Server 2012. Windows 10. Windows Server 2016. Windows Server 2019.
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.
PTC MKS Toolkit implements break as a special built-in command of the MKS KornShell. The break command supplied with PTC MKS Toolkit should not be confused with the internal Windows break command.
PTC MKS Toolkit for Power Users
PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
PTC MKS Toolkit 10.2 Documentation Build 28.