Building a simple shell in C - Part 1