Simulation of Linux Shell in C