Книги автора: Fedora™ Unleashed, 2008 edition
/ Книги автора: Fedora™ Unleashed, 2008 edition
/ honorato bonafe
Книга: Fedora™ Unleashed, 2008 edition
The break and exit Statements
The break
and exit
Statements
You should be aware of two other statements: the break
statement and the exit
statement.
The break
statement can be used to terminate an iteration loop, such as a for
, until
, or repeat
command.
exit
statements can be used to exit a shell program. You can optionally use a number after exit
. If the current shell program has been called by another shell program, the calling program can check for the code (the $?
or $status
variable, depending on the shell) and make a decision accordingly.
Похожие страницы
- Special Statements: for, while, and Others
- The shift Statement
- do ... while and do ... until
- Разработка приложений баз данных InterBase на Borland Delphi
- 4.4.4 The Dispatcher
- Open Source Insight and Discussion
- Introduction to Microprocessors and Microcontrollers
- About the author
- Chapter 6. Traversing of tables and chains
- Chapter 7. The state machine
- Chapter 8. Saving and restoring large rule-sets
- Chapter 11. Iptables targets and jumps