Learning the Korn Shell

Front Cover
"O'Reilly Media, Inc.", 1993 - Computers - 360 pages

This Nutshell Handbook® is a thorough introduction to the Korn shell, both as a user interface and as a programming language.The Korn shell, like the C and Bourne shells, is a program that interprets UNIX commands. It has many features that aren't found in other shells, including command history (the ability to recall and edit previous commands). The Korn shell is also faster; several of its features allow you to write programs that execute more quickly than their Bourne or C shell equivalents.This book provides a clear and concise explanation of the Korn shell's features. It explains ksh string operations, co-processes, signals and signal handling, and one of the worst "dark corners" of shell programming: command-line interpretation. It does this by introducing simple real-life examples and then adding options and complexity in later chapters, illustrating the way real-world script development generally proceeds. An additional (and unique) programming aid, a Korn shell debugger (kshdb), is also included.Learning the Korn Shell is an ideal resource for many UNIX users and programmers, including software developers who want to "prototype" their designs, system administrators who want to write tools for their own use, and even novices who just want to use some of ksh's more advanced interactive features.

 

Contents

Chapter 1 Korn Shell Basics
1
Chapter 2 Commandline Editing
27
Chapter 3 Customizing Your Environment
53
Chapter 4 Basic Shell Programming
75
Chapter 5 Flow Control
105
Chapter 6 Commandline Options and Typed Variables
137
Chapter 7 InputOutput and Commandline Processing
165
Chapter 8 Process Handling
197
Chapter 9 Debugging Shell Programs
227
Chapter 10 Korn Shell Administration
251
Appendix A Related Shells
261
Appendix B Reference Lists
277
Appendix C Obtaining Sample Programs
287
Index
291
About the Author
306
Copyright

Other editions - View all

Common terms and phrases

About the author (1993)

Bill Rosenblatt is president of GiantSteps/Media Technology Strategies, a consulting firm in New York City. Before founding GiantSteps, Bill was CTO of Fathom, an online content and education company associated with Columbia University and other scholarly institutions. He has been a technology executive at McGraw-Hill and Times Mirror, and head of strategic marketing for media and publishing at Sun Microsystems. Bill was also one of the architects of the Digital Object Identifier (DOI), a standard for online content identification and DRM.

Bibliographic information