This is a simple UNIX Command Line Intepreter that copies the functionalities of shell (sh).
- clone this repo then,
cd simple_shell
- Run this command
gcc -Wall -Werror -Wextra -pedantic -std=gnu89 *.c -o hsh
./hsh
Clone this repository into your working directory. Files should be compiled with GCC
1.Allowed editors: vi, vim, emacs
2.All your files will be compiled on Ubuntu 20.04 LTS using gcc, using the options -Wall -Werror -Wextra -pedantic -std=gnu89
3.All your files should end with a new line
4.A README.md file, at the root of the folder of the project is mandatory.
5.Your code should use the Betty style. It will be checked using betty-style.pl and betty-doc.pl
6.Your shell should not have any memory leaks.
7.No more than 5 functions per file.
8.All your header files should be include guarded.
9.Use system calls only when you need to (why?)
- Display a prompt and wait for the user to type a command. A command line always ends with a new line.
- The prompt is displayed again each time a command has been executed.
- The command lines are simple, no semicolons, no pipes, no redirections or any other advanced features.
- The command lines are made only of one word. No arguments will be passed to programs.
- If an executable cannot be found, prints an error message and display the prompt again...
- Gideon Mokaya<Ogega254>
- Gedeon Obae Gekonge <Gedeonobae>