# dylanaraps/pure-bash-bible architecture

> Architecture diagram of the GitHub repository dylanaraps/pure-bash-bible, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dylanaraps/pure-bash-bible
- Repository: https://github.com/dylanaraps/pure-bash-bible

## Overview

This repository is a Bash reference book, not an executable application or library. Its user workflow is to find a task in the contents, consult the corresponding snippet in the manuscript, and adapt it in a shell script to avoid external-process dependencies. The README documents broad categories of Bash techniques, but no source excerpts were provided to establish cross-file calls or runtime behavior; the graph therefore represents the documented book structure without inventing implementation links.

Main entry points: [`manuscript/Book.txt`](https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/Book.txt) (Book manuscript), [`README.md`](https://github.com/dylanaraps/pure-bash-bible/blob/master/README.md) (Topic index), [`manuscript/chapter0.txt`](https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter0.txt) (String techniques), [`manuscript/chapter1.txt`](https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter1.txt) (Array techniques)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_book["Bash reference book"]
  node_contents["Topic index<br/>[README.md]"]
  node_manuscript["Book manuscript<br/>[Book.txt]"]
  node_strings["String techniques<br/>[chapter0.txt]"]
  node_arrays["Array techniques<br/>[chapter1.txt]"]
  node_loops["Loop techniques<br/>[chapter2.txt]"]
  node_filehandling["File handling<br/>[chapter3.txt]"]
  node_filepaths["File paths<br/>[chapter4.txt]"]
  node_variables["Variables<br/>[chapter5.txt]"]
  node_escapes["Escape sequences<br/>[chapter6.txt]"]
  node_parameter["Parameter expansion<br/>[chapter7.txt]"]
  node_brace["Brace expansion<br/>[chapter8.txt]"]
  node_conditionals["Conditional expressions<br/>[chapter9.txt]"]
  node_operators["Arithmetic operators<br/>[chapter10.txt]"]
  node_arithmetic["Arithmetic idioms<br/>[chapter11.txt]"]
  node_traps["Traps<br/>[chapter12.txt]"]
  node_performance["Performance tips<br/>[chapter13.txt]"]
  node_obsolete["Obsolete syntax<br/>[chapter14.txt]"]
  node_internal["Internal variables<br/>[chapter15.txt]"]
  node_terminal["Terminal information<br/>[chapter16.txt]"]
end

node_reader(("Script author"))

node_reader -->|"finds topic"| node_contents
node_contents -->|"points to chapters"| node_manuscript
node_manuscript -->|"includes"| node_strings
node_manuscript -->|"includes"| node_arrays
node_manuscript -->|"includes"| node_loops
node_manuscript -->|"includes"| node_filehandling
node_manuscript -->|"includes"| node_filepaths
node_manuscript -->|"includes"| node_variables
node_manuscript -->|"includes"| node_escapes
node_manuscript -->|"includes"| node_parameter
node_manuscript -->|"includes"| node_brace
node_manuscript -->|"includes"| node_conditionals
node_manuscript -->|"includes"| node_operators
node_manuscript -->|"includes"| node_arithmetic
node_manuscript -->|"includes"| node_traps
node_manuscript -->|"includes"| node_performance
node_manuscript -->|"includes"| node_obsolete
node_manuscript -->|"includes"| node_internal
node_manuscript -->|"includes"| node_terminal

click node_contents "https://github.com/dylanaraps/pure-bash-bible/blob/master/README.md"
click node_manuscript "https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/Book.txt"
click node_strings "https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter0.txt"
click node_arrays "https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter1.txt"
click node_loops "https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter2.txt"
click node_filehandling "https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter3.txt"
click node_filepaths "https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter4.txt"
click node_variables "https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter5.txt"
click node_escapes "https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter6.txt"
click node_parameter "https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter7.txt"
click node_brace "https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter8.txt"
click node_conditionals "https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter9.txt"
click node_operators "https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter10.txt"
click node_arithmetic "https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter11.txt"
click node_traps "https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter12.txt"
click node_performance "https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter13.txt"
click node_obsolete "https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter14.txt"
click node_internal "https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter15.txt"
click node_terminal "https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter16.txt"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_contents,node_manuscript,node_strings,node_arrays,node_loops,node_filehandling,node_filepaths,node_variables,node_escapes,node_parameter,node_brace,node_conditionals,node_operators,node_arithmetic,node_traps,node_performance,node_obsolete,node_internal,node_terminal toneBlue
class node_reader toneIndigo
```

## Components

### Bash reference book

- [Topic index](https://github.com/dylanaraps/pure-bash-bible/blob/master/README.md): `README.md`
- [Book manuscript](https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/Book.txt): `manuscript/Book.txt`
- [String techniques](https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter0.txt): `manuscript/chapter0.txt`
- [Array techniques](https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter1.txt): `manuscript/chapter1.txt`
- [Loop techniques](https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter2.txt): `manuscript/chapter2.txt`
- [File handling](https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter3.txt): `manuscript/chapter3.txt`
- [File paths](https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter4.txt): `manuscript/chapter4.txt`
- [Variables](https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter5.txt): `manuscript/chapter5.txt`
- [Escape sequences](https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter6.txt): `manuscript/chapter6.txt`
- [Parameter expansion](https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter7.txt): `manuscript/chapter7.txt`
- [Brace expansion](https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter8.txt): `manuscript/chapter8.txt`
- [Conditional expressions](https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter9.txt): `manuscript/chapter9.txt`
- [Arithmetic operators](https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter10.txt): `manuscript/chapter10.txt`
- [Arithmetic idioms](https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter11.txt): `manuscript/chapter11.txt`
- [Traps](https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter12.txt): `manuscript/chapter12.txt`
- [Performance tips](https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter13.txt): `manuscript/chapter13.txt`
- [Obsolete syntax](https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter14.txt): `manuscript/chapter14.txt`
- [Internal variables](https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter15.txt): `manuscript/chapter15.txt`
- [Terminal information](https://github.com/dylanaraps/pure-bash-bible/blob/master/manuscript/chapter16.txt): `manuscript/chapter16.txt`

### Other components

- **Script author**

## Connections

- Script author → Topic index: finds topic (evidence: `README.md`)
- Topic index → Book manuscript: points to chapters (evidence: `README.md`)
- Book manuscript → String techniques: includes (evidence: `README.md`)
- Book manuscript → Array techniques: includes (evidence: `README.md`)
- Book manuscript → Loop techniques: includes (evidence: `README.md`)
- Book manuscript → File handling: includes (evidence: `README.md`)
- Book manuscript → File paths: includes (evidence: `README.md`)
- Book manuscript → Variables: includes (evidence: `README.md`)
- Book manuscript → Escape sequences: includes (evidence: `README.md`)
- Book manuscript → Parameter expansion: includes (evidence: `README.md`)
- Book manuscript → Brace expansion: includes (evidence: `README.md`)
- Book manuscript → Conditional expressions: includes (evidence: `README.md`)
- Book manuscript → Arithmetic operators: includes (evidence: `README.md`)
- Book manuscript → Arithmetic idioms: includes (evidence: `README.md`)
- Book manuscript → Traps: includes (evidence: `README.md`)
- Book manuscript → Performance tips: includes (evidence: `README.md`)
- Book manuscript → Obsolete syntax: includes (evidence: `README.md`)
- Book manuscript → Internal variables: includes (evidence: `README.md`)
- Book manuscript → Terminal information: includes (evidence: `README.md`)
