0%

Book Description

It’s simple: if you want to interact deeply with Mac OS X, Linux, and other Unix-like systems, you need to know how to work with the Bash shell. This concise little book puts all of the essential information about Bash right at your fingertips.

You’ll quickly find answers to the annoying questions that generally come up when you’re writing shell scripts: What characters do you need to quote? How do you get variable substitution to do exactly what you want? How do you use arrays? Updated for Bash version 4.4, this book has the answers to these and other problems in a format that makes browsing quick and easy.

Topics include:

  • Invoking the shell
  • Syntax
  • Functions and variables
  • Arithmetic expressions
  • Command history
  • Programmable completion
  • Job control
  • Shell options
  • Command execution
  • Coprocesses
  • Restricted shells
  • Built-in commands

Table of Contents

  1. 1. The Bash Shell
    1. Conventions
    2. History
    3. Overview of Features
    4. Invoking the Shell
      1. Command-Line Options
      2. Arguments
    5. Command Exit Status
    6. Syntax
      1. Special Files
      2. Filename Metacharacters
      3. Brace Expansion
      4. Escape Sequences
      5. Quoting
      6. Command Forms
      7. Redirection Forms
    7. Functions
      1. Tip
    8. Variables
      1. Variable Assignment
      2. Variable Substitution
      3. Indirect Variables (namerefs)
      4. Built-In Shell Variables
      5. Other Shell Variables
      6. Arrays
      7. Special Prompt Strings
    9. Arithmetic Expressions
      1. Operators
      2. Notes
      3. Examples
    10. Command History
      1. Line-Edit Mode
      2. The fc Command
      3. C-Shell–Style History
    11. Programmable Completion
      1. Tip
      2. Examples
    12. Job Control
    13. Shell Options
    14. Command Execution
    15. Coprocesses
      1. Example
    16. Restricted Shells
      1. Tip
    17. Built-In Commands
    18. Resources
      1. Online Resources
      2. Books
    19. Acknowledgments
    20. Acknowledgments from the First Edition
  2. Index
3.17.150.89