Skip to content

chimpanstache/minishell-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minishell

Rewrite a simple shell in c

Subject: Minishell - 42

Members: 🌜 Ehafidi - Ymanzi 🌛

myImage

How to Use It

Using make will create the minishell executable.

Simply run it with :

./minishell

Instruction

  • ' and " work the same as in bash
  • Able to run commandes from an absolute, relative or environment PATH, including arguments or options.
  • Commands can be separate with ;
  • Handle redirections > >> < and pipes | as well
  • Environment variables are handled like $HOME including return code $?
  • Like in bash, you can use Ctrl-C to interrupt and Ctrl-\ to quit a program, as well as Ctrl-D to throw an EOF
  • some "built-in" were recoded: echo, pwd, cd, env, export, unset and exit.

RESOURCES

myImage

SHELL Informations

Lexer

Parse Tree

Pipe - Fork - Execve - dup Functions

Bash Redirection

Bash Pipe

Exit

myImage

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 97.7%
  • Makefile 2.3%