Using a Combination of C system calls and string parsing to implement a shell