How vishalk91-4/custom-shell works
This is a small interactive Unix-like shell. Its demonstrated workflow reads a command line, tokenizes it, dispatches built-ins or searches PATH and launches an external program. The README also claims pipelines, redirection, job control, signals, and environment expansion, but the only sampled source does not show those features; they are represented as documented, unverified capabilities rather than asserted implementation flows.
Main entry points: main.cpp External execution · src Pipelines
Components 14
Shell interaction
- Command loop
src/main.cpp - Whitespace tokenizer
src/main.cpp
Command handling
- Command dispatch
src/main.cpp - Built-in handlers
src/main.cpp - Type lookup
src/main.cpp
Process execution
- PATH search
src/main.cpp - Argument builder
src/main.cpp - External execution
src/main.cpp
Documented capabilities
Other components
- Shell user
Connections 15
- Shell user → Command loop: enters commands
README.md - Command loop → Whitespace tokenizer: tokenizes input
src/main.cpp - Command loop → Command dispatch: dispatches command
src/main.cpp - Command dispatch → Built-in handlers: handles built-ins
src/main.cpp - Command dispatch → External execution: runs other commands
src/main.cpp - Built-in handlers → Type lookup: calls type handler
src/main.cpp - Type lookup → PATH search: searches PATH
src/main.cpp - External execution → PATH search: resolves command
src/main.cpp - External execution → Argument builder: builds arguments
src/main.cpp - External execution → Shell user: runs and waits
src/main.cpp - Shell user → Pipelines: uses pipelines
README.md - Shell user → I/O redirection: uses redirection
README.md - Shell user → Background and job control: controls jobs
README.md - Shell user → Signal handling: sends signals
README.md - Shell user → Environment expansion: uses expansion
README.md