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.

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.


SEE ALSO

Commands:
continue, sh


Updated MKS Toolkit [3khat16.ico]HP3000 [3khat16.ico]3kMail [archive16.gif]