An open API service indexing awesome lists of open source software.

https://github.com/victhem/simple_shell

we have come across many shells: sh, bash, csh etc... this is a customized shell as ALX C project, it's name is hsh
https://github.com/victhem/simple_shell

argc-argv c command-line files interpreter memory-managment modular-programming string-manipulation structural-programming system-calls unix

Last synced: 10 months ago
JSON representation

we have come across many shells: sh, bash, csh etc... this is a customized shell as ALX C project, it's name is hsh

Awesome Lists containing this project

README

          

# Compilation
1) compile like this:
gcc -Wall -Werror -Wextra -pedantic -std=gnu89 *.c -o yourShell
2) 'yourShell' is any name you wish

# General
1) functions that creates malloced string starts with m_*

# The Parser
Sources in this folder contain code that
1) Displays the prompt
2) Reads and validate the input
3) Sorts them into words and cmd tokens
4) checks is a command exists, otherwise return
5) screen input and make them ready for the executor
6) passes input to # The Executor

# THE EXECUTOR
sources in this folder contains code that
1) executes binarty files
2) create new processes
3) kill and replace processes
4) execute shell scripts

No form of validation of data occurs here, all validations,
are to be handles by # The Parser