The Z Shell provides a much richer set of builtins—for option processing, I/O, control flow, and control of the user's environment—than either the Bourne Again or TC Shells. This section focuses on the builtins not covered previously.

Control Structures

Whereas this book refers to a control structure or control flow command, the Z Shell documentation refers to a complex command. This chapter will stay with the term control structure or control flow command for consistency with the rest of the book. The control flow commands are used primarily for shell programming, although they can also be useful in interactive work. The Z Shell control structures that control the process flow are if…then, for…in, while, case, until, repeat, and select. ...

Get A Practical Guide to Red Hat® Linux® 8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.