← All projects

orsh

by @wassim31

12

ORSH - is an Oranios simple shell written in order to understand how shells work .

About this project

ORSH : ORANIOS SHELL Orsh : stands for Oranios shell , which is a simple shell written in C . What Oranios means ? Oranios means that this shell is from Oran , since Oran is my lovely city , you should visit it :) How it works ? I used the REPL way in this shell : that means Read , Execute , Parse , Loop . orshloop() function will be in a constant loop as it name tells , it will read a string by the function orshreadcommand orshreadcommand : it will read from the standard input (keyboard stdin ) character by character , until it reaches the EOF or back to the line flags, so it ends the string with null character. orshsplitcommand : this command will uses strtok() function provided by the standard C library , it will tokenize the string into a bunch of tokens by specifiyng the delimiter as a reference to split (that can be a space or back to the line character , check orshsplitcommand.h , it contains a macro called ORSHTOKDELIM) Remark : #### The strtok function maintains the state of the string being tokenized using an internal static pointer.

From the project README on GitHub

Stars
12
Forks
1
License
GPL-3.0
Last push
12 Jun 2024

Add this badge to your README

Show that your project is listed on Made in Algeria.

Made in Algeria
[![Made in Algeria](https://www.madeinalgeria.dev/badge/orsh.svg)](https://www.madeinalgeria.dev/projects/orsh)

Related projects