What is mini-shell??Mini-shell is a simple Unix Shell written in C program.It employs the system calls to execute the commands.Since it is a part of my academic project,it doesnt have a full-fledged functions of a typical shell though i implemented some of them.
Features:Reads commands from standard input and execute them in a loop until a built-in command exit is issued Makes use of pipe to input the output of command to another. Terminates the foreground process when user presses ^C and return back to the mini-shell. Interrupts the foreground process temporarily, when user presses ^Z, returning to the mini-shell. Executes any number of processes in background. Informs the user when the background process finishes or is waiting for an input from the terminal; Informs the user what commands are executing in the background by issuing the built-in command jobs, including information about the state of the process. Terminates a background processes by issuing the built-in command kill job-number. Features that are not included:It doesnt redirects standard input,output and error.(Though i tried to implement it but it doesnt work satisfactorily as it was prone of bugs). No support for the shell meta characters and wild cards. Positional parameters not supported. No support for history.(so the arrow keys to retrieve previous commands wont work). No command ,file name auto completion.
Bibliography and Reference:The Advanced Unix Programming by Steven Richards. The Advanced Unix ,A Programmers guide by Stephen Prata. http://www.gnu.org/software/libc/manual/html_node/index.html http://linuxgazette.net/111/ramankutty.html