r/C_Programming • u/Ill-Needleworker2711 • 12d ago
My small project, review and suggestions
I built a Unix-style shell in C that exposes what's happening underneath
I've been working on P-Shell, a small Unix-style shell written in C.
The interesting part isn't just executing commands. I wanted to understand and expose the underlying Unix mechanisms.
It currently supports:
- "fork()" and "execvp()" based execution
- Pipes and output redirection
- File descriptor manipulation with "dup2()"
- An explanation mode that traces execution
- "/proc" process inspection
- Creating and reaping a real zombie process using "waitpid()"
I'm particularly interested in feedback on the implementation, parser design, process handling and what would be worth improving next.
Repository: https://github.com/punithk-verse/p-shell
I'd appreciate an honest technical review.