Skip to content

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

Notifications You must be signed in to change notification settings

VicTheM/simple_shell

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages