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
- Host: GitHub
- URL: https://github.com/victhem/simple_shell
- Owner: VicTheM
- Created: 2023-11-01T06:42:55.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-01T10:34:14.000Z (almost 2 years ago)
- Last Synced: 2025-02-14T07:51:27.173Z (12 months ago)
- Topics: argc-argv, c, command-line, files, interpreter, memory-managment, modular-programming, string-manipulation, structural-programming, system-calls, unix
- Language: C
- Homepage:
- Size: 111 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Authors: AUTHORS
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