Skip to content

Gedeonobae/simple_shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Shell

Introduction.

This is a simple UNIX Command Line Intepreter that copies the functionalities of shell (sh).

How it works...

  • clone this repo then,
cd simple_shell
  • Run this command
gcc -Wall -Werror -Wextra -pedantic -std=gnu89 *.c -o hsh

./hsh

Installation.

Clone this repository into your working directory. Files should be compiled with GCC

General Requirements.

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?)

Features.

  1. Display a prompt and wait for the user to type a command. A command line always ends with a new line.
  2. The prompt is displayed again each time a command has been executed.
  3. The command lines are simple, no semicolons, no pipes, no redirections or any other advanced features.
  4. The command lines are made only of one word. No arguments will be passed to programs.
  5. If an executable cannot be found, prints an error message and display the prompt again...

Authors ✒️

About

Writing a simple UNIX command interpreter.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages