Shell implementation in C with python embedding
gcc compiler
Python 2.7
- Basic commands:
exit
,ls
,pwd
,clear
andcd
- Program invocation with forking and child processes
- Aliasing Feature
- I/O redirection (use of
dup2
system call) limited to the following:
<cmd> <args> > <output>
<cmd> <args> < <input> > <output>
- Background execution of programs with
&
- Piping implemented (
<cmd1> | <cmd2>
) viapipe
anddup2
syscalls. Multiple piping is allowed. - Editor implemented. Type
editor
in the shell to enable text editor feature. - Custom functions implemented like
prime
find
lookfor
Test
gcc shell.c