Buying Options
Learning the bash Shell, Second Edition
Safari Books Online
Add to Cart
What is this?

Product Editions

Please consider the latest edition.

  1. Learning the bash Shell, Third Edition - March 2005
  2. Learning the bash Shell, Second Edition - January 1998
  3. Learning the bash Shell - October 1995 (out of print)
Description
This second edition covers all of the features of bash Version 2.0, while still applying to bash Version 1.x. It includes one-dimensional arrays, parameter expansion, more pattern-matching operations, new commands, security improvements, additions to ReadLine, improved configuration and installation, and an additional programming aid, the bash shell debugger.
Full Description
Table of Contents
  1. Chapter 1 bash Basics

    1. What Is a Shell?

    2. Scope of This Book

    3. History of UNIX Shells

    4. Getting bash

    5. Interactive Shell Use

    6. Files

    7. Input and Output

    8. Background Jobs

    9. Special Characters and Quoting

    10. Help

  2. Chapter 2 Command-Line Editing

    1. Enabling Command-Line Editing

    2. The History File

    3. emacs Editing Mode

    4. vi Editing Mode

    5. The fc Command

    6. History Expansion

    7. readline

    8. Keyboard Habits

  3. Chapter 3 Customizing Your Environment

    1. The .bash_profile, .bash_logout, and .bashrc Files

    2. Aliases

    3. Options

    4. Shell Variables

    5. Customization and Subprocesses

    6. Customization Hints

  4. Chapter 4 Basic Shell Programming

    1. Shell Scripts and Functions

    2. Shell Variables

    3. String Operators

    4. Command Substitution

    5. Advanced Examples: pushd and popd

  5. Chapter 5 Flow Control

    1. if/else

    2. for

    3. case

    4. select

    5. while and until

  6. Chapter 6 Command-Line Options and Typed Variables

    1. Command-Line Options

    2. Typed Variables

    3. Integer Variables and Arithmetic

    4. Arrays

  7. Chapter 7 Input/Output and Command-Line Processing

    1. I/O Redirectors

    2. String I/O

    3. Command-Line Processing

  8. Chapter 8 Process Handling

    1. Process IDs and Job Numbers

    2. Job Control

    3. Signals

    4. trap

    5. Coroutines

    6. Subshells

    7. Process Substitution

  9. Chapter 9 Debugging Shell Programs

    1. Basic Debugging Aids

    2. A bash Debugger

  10. Chapter 10 bash Administration

    1. Installing bash as the Standard Shell

    2. Environment Customization

    3. System Security Features

  11. Chapter 11 bash for Your System

    1. Obtaining bash

    2. Unpacking the Archive

    3. What's in the Archive

    4. Who Do I Turn to?

  1. Appendix A Related Shells

    1. The Bourne Shell

    2. The IEEE 1003.2 POSIX Shell Standard

    3. The Korn Shell

    4. pdksh

    5. Workalikes on PC Platforms

  2. Appendix B Reference Lists

    1. Invocation

    2. Built-In Commands and Reserved Words

    3. Environment Variables

    4. Test Operators

    5. set Options

    6. shopt Options

    7. I/O Redirection

    8. emacs Mode Commands

    9. vi Control Mode Commands

  3. Appendix C Loadable Built-Ins

  4. Appendix D Syntax

    1. Reserved Words

    2. BNF for bash

  5. Appendix E Obtaining Sample Programs

    1. FTP

    2. FTPMAIL

  6. Colophon

View Full Table of Contents
Product Details
Title:
Learning the bash Shell, Second Edition
By:
Cameron Newham, Bill Rosenblatt
Publisher:
O'Reilly Media
Formats:
  • Print
  • Safari Books Online
Print Release:
January 1998
Pages:
336
Print ISBN:
978-1-56592-347-8
| ISBN 10:
1-56592-347-2
Customer Reviews
About the Authors
  1. Cameron Newham

    Cameron Newham lives in Perth, Western Australia. After completing a Bachelor of Science majoring in information technology and geography at the University of Western Australia, Cameron joined Universal Defence Systems (later to become Australian Defence Industries) as a software engineer. He has been with ADI for six years, working on various aspects of command and control systems. In his spare time Cameron can be found surfing the Internet, ballroom dancing, or driving his sports car. He also has more than a passing interest in space science, 3D graphics, synthesiser music, and Depeche Mode. Bill Rosenblatt is author of the the O'Reilly Nutshell Handbook(R) Learning the Korn Shell; co-author, with Deb Cameron, of Learning GNU Emacs; and a contributor to UNIX Power Tools. He is director of publishing systems at the Times Mirror Company in New York City and a columnist in SunWorld Online magazine on the World Wide Web. Bill received a B.S.E. from Princeton University and an M.S. and A.B.D. from the University of Massachusetts at Amherst, each in some variant of computer science. His interests in the computing field include multimedia databases, electronic publishing, and object- oriented systems. Outside of the computing field, he's interested in jazz, classical music, antique maps, and Sherlock Holmes pastiche novels. Bill lives on the Upper West Side of Manhattan. He wishes his landlord allowed pets so that he could truthfully claim to have a dog and cat with suitably droll names like "Coltrane" and "Ravel."

    View Cameron Newham's full profile page.

  2. Bill Rosenblatt

    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.

    View Bill Rosenblatt's full profile page.

Colophon

Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The fish featured on the cover of Learning the bash Shell is a silver bass, one of the 400-500 species of sea bass. The silver bass, also known as the white perch, is found in freshwater bays and river mouths along the Atlantic coast from Nova Scotia to South Carolina, and is most abundant in the Chesapeake region. Silver bass live in large schools and feed on small fishes and crustaceans. Although many bass never stray far from one place their whole lives, silver bass swim upstream to spawn, often becoming landlocked in the process. Like most bass, the silver bass is attracted to bright, shiny objects, and they can be drawn quite close to swimmers and divers in this way. UNIX and its attendant programs can be unruly beasts. Nutshell Handbooks(R) help you tame them. ... Edie Freedman designed the cover of this book, using a 19th-century engraving from the Dover Pictorial Archive. The cover layout was produced with Quark XPress 3.3 using the ITC Garamond font. The inside layout was designed by Edie Freedman and Jennifer Niederst and modified by Nancy Priest. It was implemented in gtroff by Lenny Muellner. The text and heading fonts are ITC Garamond Light and Garamond Book. The illustrations that appear in the book were created in Macromedia Freehand 4.0 by Chris Reilley. This colophon was written by Clairemarie Fisher O'Leary.

  • Book cover of Learning the bash Shell