Skip to content

This project is about writing the most stable and most complete UNIX shell possible.

License

Notifications You must be signed in to change notification settings

amnotme/42_Shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42_Shell

This project is about writing the most stable and most complete UNIX shell possible.

Compiling Program

The 42_Shell program wil compile into the executable 42sh after having cloned this repository into the desired location and running the command make inside the cloned repository.

cd ~/Desktop &&
git clone https://github.com/amnotme/42_Shell.git &&
cd 42_Shell &&
make

Standard features of the custom shell program (42sh)

The 42sh will function similiarly to a regular shell / terminal. The shell program will be able to have the following basic features:

A minimum line acquisition:

  • Prompt display.
  • Reading of a command line without line edition.
  • Proper space and tabulations management.

The following builtins including all their features if they have any (the strict minimum being the features listed in POSIX standard):

  • cd

  • echo

  • exit

  • env

  • setenv

  • unsetenv

  • Simple execution of simple command with arguments and PATH management.

  • Error and command’s return value management.

  • The following redirections: ">", ">>", "<" and "|".

  • The following logical operators "&&" and "||".

  • The ";" separator.

In use

Start of shell program:

Image of Startup Screen

Execution of duplicated UNIX commands:

The shell at work

About

This project is about writing the most stable and most complete UNIX shell possible.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published