From Scratch to Shell: Building Your Own Functional Bash
summary
A compact, working Bash clone implemented in C that demonstrates core internals: a lexer→parser→AST pipeline, parameter and word expansion, builtins like cd and export, external command execution via fork+execvp with wait/waitpid and exit-status handling, pipes implemented with pipe/dup2, file-descriptor redirection, simple job control for background jobs, signal handling, and Readline for input/history. The demo runs but omits many Bash features (quotes, full globbing, advanced job control), making it a practical, minimal shell for learning and extension.
AI-written summary · about
chapters (9)
- 0:00Introduction to Bash
- 2:16Core Bash features
- 6:17Simple shell demo
- 9:47Parsing and execution
- 13:00Variable expansion
- 15:49Background jobs
- 16:55Pipes and redirection
- 18:24Error handling
- 19:48Q&A
related talks
01h 01mThe Linux Shell - From Novice to Wizard
23mBash and All That; Why Ancient *NIX Tools Are Still Essential
49mTaming Code Quality in the Worst Language I Know: Bash
52mLinux terminal for java developers — boost your efficiency!
50mUnderstanding Linux Containers by Building One from Scratch
01h 18mTutorial: Getting Started with eBPF
01h 25mSandboxing a Linux Application
24mWrite your own container, for fun and no profit!
