Discussion Section for Sept. 27, 2012: Mini-Shell

In Discussion Section

Implement a mini-shell that does the following:

You can assume everything will be lower case (eg: exit will always be exactly exit), all commands will not have any extra whitespace, and all arguments to a command will be seperated by exactly one space.

Compiling and Running

To compile and run your shell, run the following commands from a Terminal on a Linux machine:

$ make
$ ./mshell


Consider the following example run of your shell:

$ ls
Makefile mshell mshell.c
$ pwd
$ cd ..
$ ls
ds1 ds2 ds3 hw1 mp1 mp2 mp3
$ pwd
$ echo hello world
hello world
$ exit