Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 756 Bytes

File metadata and controls

30 lines (22 loc) · 756 Bytes

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