Simple Shell written in C for OS Project.
This project is part of the Operating Systems course offered to us ISI Kolkata in Spring Semester, 2024, taught to us by Prof. Mandar Mitra.
We used GNU flex
as the lexer and GNU bison
as the parser for this project.
This helped us learn about the inner workings of the shell as well as basics of flex
and bison
which form a powerful lexer-parser pair.
sudo apt install flex bison
make
./tash
The basic format of a command is:
a1 | a2 | ... | an <inFile >outFile &>errFile
inFile
would be provided as input to command a1
and the final output will be redirected to outFile
. Also, the error would be redirected to errFile
.
Also, >>outFile
and &>>errFile
are also supported for appending to output or error files.
flex
, bison
, gcc
, make
- Aditya Dutta (https://github.com/mrishu)
- Shince K. Baby (https://github.com/vazhipokkan)
- Tanmay Karmakar (https://github.com/Tanmay-Karmakar)
We have named the shell tash
(stands for Tanmay, Aditya and Shince).