How swatimishra0416-png/mini-linux-shell works
Mini-Linux-Shell is a small interactive C shell. The user enters a line; the main loop splits it on pipe characters and passes the resulting commands to the executor. The executor forks processes, connects adjacent commands with pipes, waits for children, and launches programs with execvp. The README documents command execution, piping, and process management. These behaviors are implemented in one source file, so the graph separates responsibilities rather than implying separate modules.
Main entry points: shell.c Pipeline executor
Components 5
Other components
- Shell user
- Shell loop
shell.c - Pipeline executor
shell.c - Linux processes
- Command programs
Connections 4
- Shell user → Shell loop: enters commands
shell.c - Shell loop → Pipeline executor: dispatches commands
shell.c - Pipeline executor → Linux processes: forks, pipes, waits
shell.c - Pipeline executor → Command programs: executes via execvp
shell.c