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 8.1. Windows Server 2012 R2. Windows 10. Windows Server 2016. Windows Server 2019. Windows 11. Windows Server 2022.

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

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.


AVAILABILITY

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 Windchill Requirements and Validation


SEE ALSO

Commands:
continue, sh


PTC MKS Toolkit 10.4 Documentation Build 39.