Skip to content

JeremyVanderMotte/minishell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minishell

The goal of this project is to recreate a shell (bash is the reference).

We need to recode some buitlin commands :

  • cd
  • pwd
  • env
  • export
  • echo

When launched, the program display a prompt and we are able to use it like a shell. We can type builtin command or not.
If this is not a builtin command, the program will try to find a path using the $PATH variable where the command is. It will try every path is founding until he succeed to execute the command. If not, it will print command not found.
The program have behavior like bash while typing special command like cat | cat | ls.

Allowed commands :

  • buitlin or command used in bash (ls, cat, ps, ...)
  • pipe ( | )
  • Redirection ( <, >, >>)
  • Heredoc ( << )

⚠️ The program doesn't treat any other symbols.
The program can take mutliple pipe and multiple redirection.
The program sets the exit code to the correct one while executing command.

Grade :

Screen Shot 2022-06-22 at 11 28 03 AM

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors