An attempt to make a shell.
Tracking history of commands, using arrow keys to get history and autocomplete using tab are done by using readline library provided by GNU.
Currently the commands using pipes are not implemented in this shell.
Write this command in terminal:
sudo apt-get install libreadline-dev
Copy the C code and save it as myshell.c in any directory.
Paste this line in your .bashrc
alias gmm="gcc myshell.c -L/usr/local/lib -I/usr/local/include -lreadline "
Then open terminal and move to the directory where myshell.c is present and write:
gmm
./a.out
And there's your shell :)