break (built-in Bash command)

Content

 

Data

license: 
Version: 
Developer / owner:

Short description:

The manual page and help for the break linux command. Exits the for, while or until loops. If N is specified, N exits nested loops.

 

 

Man page output

man break
UNIMPLEMENTED(2)               Linux Programmer's Manual               UNIMPLEMENTED(2)

NAME
       afs_syscall,  break,  fattach, fdetach, ftime, getmsg, getpmsg, gtty, isastream,
       lock, madvise1, mpx, prof, profil, putmsg,  putpmsg,  security,  stty,  tuxcall,
       ulimit, vserver - unimplemented system calls

SYNOPSIS
       Unimplemented system calls.

DESCRIPTION
       These system calls are not implemented in the Linux kernel.

RETURN VALUE
       These system calls always return -1 and set errno to ENOSYS.

NOTES
       Note  that  ftime(3),  profil(3), and ulimit(3) are implemented as library func‐
       tions.

       Some  system  calls,  like  alloc_hugepages(2),  free_hugepages(2),   ioperm(2),
       iopl(2), and vm86(2) exist only on certain architectures.

       Some   system   calls,   like   ipc(2),  create_module(2),  init_module(2),  and
       delete_module(2) exist only when the Linux kernel was  built  with  support  for
       them.

SEE ALSO
       syscalls(2)

COLOPHON
       This page is part of release 4.10 of the Linux man-pages project.  A description
       of the project, information about reporting bugs, and the latest version of this
       page, can be found at https://www.kernel.org/doc/man-pages/.

Linux                                  2013-02-12                      UNIMPLEMENTED(2)
man bash
[...]
       break [n]
              Exit  from  within a for, while, until, or select loop.  If n is specified, break n
              levels.  n must be ≥ 1.  If n is greater than the number of  enclosing  loops,  all
              enclosing  loops are exited.  The return value is 0 unless n is not greater than or
              equal to 1.
[...]

 

 

Help output

break --help
break: break [n]
    Kilépés a for, while vagy until ciklusokból.
    
    Kilépés egy FOR, WHILE vagy UNTIL ciklusból. Ha N meg van adva, akkor N
    egymásba ágyazott ciklusból lép ki.
    
    Kilépési kód:
    A kilépési kód 0, ha N >= 1.

 

Related Content

  •