Skip to content

nschumac/42cursus03-Minishell

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42cursus03-Minishell

Description:

The goal of this project is to recreate bash shell.

Features:

  • interpretation of |, &&, ||, ()
  • interpretation of <, <<, >, >>
  • interpretation of $, ", '
  • interpretation of * for the current working directory (e.g ls *)
  • built in functions:
    • echo with or without -n (e.g echo -n hello "world")
    • cd with parameters (e.g cd ../directory)
    • env (lists all environment variabels)
    • exit with parameters (e.g exit 42)
    • export with or without parameters (e.g export TEST="test variable" )
    • unset (e.g unset TEST )
    • pwd (shows current directory)
    • false and true (e.g false || true && ls)

Usage:

MacOs Linux only

  • git clone --recursive https://github.com/nschumac/42cursus03-Minishell.git
  • install readline library (e.g brew install readline)
  • run make in cloned repository
  • execute ./minishell

you are now in a shell and can execute most commands (e.g ls -a | grep a | cat)

Subject:

minishell subject

Result:

  • Status: Completed
  • Result: 125%

Contact:

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 94.2%
  • Makefile 5.8%