I am trying to imitate functionalities of Linux Command Shell with C.