- This is a basic shell implemented in C.
- Contributor - Divyanshu Talwar
- The shell does not exit on
Ctrl + C
. - Built in functions -
cd
,history
,exit
,help
. - The shell's history is maintain in the form of a queue and is also written into
.ush_history
, thus the shell remembers the commands, even if it is restarted. - The previous commands can be accessed by pressing the
up arrow
and the next commands (if any) by pressing thedown arrow
(implemented with the help of history feature inreadline
function). - It can run all the commands listed in the directories
/bin
or/usr/bin
. - It can handle piping
|
, redirection of stdin and/or stdout> and/or <
. - The shell can
kill
only those processes that are started by it, if it is not started in root mode (by default shell is not started in root mode ), else it can kill any process exceptinit
. - The
help
command lists all the built in commands. - The
history
command lists all the commands used so far(since the first use of the shell). - Any erroneous command results in
Command not found!
as the output on stdout. - The shell exits if an
EOF character
orexit
is typed on stdin. - Typing
enter
onstdin
takes the prompt to the next line.
- Background and Foreground jobs.
- Run
make
command on the console and the Makefile would run the shell.