Your Shell Is Just a Loop

Some features may only be available on the original post . Every developer uses a shell daily. Most people assume it's some complex, arcane piece of software. It's not. At its core, a shell is just a loop that reads a command, runs it, and waits for the next one. That's it. So let's build one. A Prompt That Reads Commands Every shell starts the same way: show a prompt, wait for input, chop it into…