Build Your Own Linux Shell in C (Part 7): The Shell Loop, main(), cd, fork1() & Why Shells Never… (opens in new tab)
Understand the control center of your shell — how Bash keeps running forever, why cd is weird, and how commands continuously execute
Read the original article