Bash - Break

About

A flow command that exit from within a for, while, until, or select loop.

Syntax

break [n]

where:

  • n is the break level. n must be ≥ 1.

Exit

  • If n is greater than the number of enclosing loops, all enclosing loops are exited.
  • The return value is non-zero when n is ≤ 0; Otherwise, break returns 0 value.

Powered by ComboStrap