mrishu / tash

Simple Shell written in C for OS Project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tash

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.

Instructions

sudo apt install flex bison
make
./tash

Format of command

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.

Requirements

flex, bison, gcc, make

References

Team Members

We have named the shell tash (stands for Tanmay, Aditya and Shince).

About

Simple Shell written in C for OS Project

License:GNU General Public License v3.0


Languages

Language:C 70.4%Language:Yacc 21.2%Language:Lex 6.8%Language:Makefile 1.6%