Skip to content

Musoye/simple_shell

Repository files navigation

Simple Shell Team Project

Project was completed using C language Shell Betty linter

General Requirement for project All files are compiled on Ubuntu 20.04 LTS using gcc, using the options -Wall -Werror -Wextra -pedantic -std=gnu89 All files ends with a new line

A README.md file at the root of the folder of the project is mandatory Used the Betty style to check 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 Compilation gcc -Wall -Werror -Wextra -pedantic -std=gnu89 *.c -o hsh

About

A ALX repository for the simple shell project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages