Skip to content

Redemption19/simple_shell

Repository files navigation

ALX Simple Shell Team Project This is an ALX collaboration project on Shell. We were tasked to create a simple shell that mimics the Bash shell. Our shell shall be called hsh

Project was completed using C language Shell Betty linter General Requirement for project

All files will be compiled on Ubuntu 20.04 LTS using gcc, using the options -Wall -Werror -Wextra -pedantic -std=gnu89 All files should end with a new line A README.md file, at the root of the folder of the project is mandatory Use the Betty style. It will be checked using betty-style.pl and betty-doc.pl Shell should not have any memory leaks No more than 5 functions per file All header files should be include guarded Write a README with the description of the project

Description hsh is a simple UNIX command language interpreter that reads commands from either a file or standard input and executes them.

How hsh works

Prints a prompt and waits for a command from the user Creates a child process in which the command is checked Checks for built-ins, aliases in the PATH, and local executable programs The child process is replaced by the command, which accepts arguments When the command is done, the program returns to the parent process and prints the prompt The program is ready to receive a new command To exit: press Ctrl-D or enter "exit" (with or without a status) Works also in non interactive mode

About

A group project about creating a simple shell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages