Skip to content

vfiszbin/minishell

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

191 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minishell

Minishell is a two person project at 42. The goal is to create to create a bash-like shell from scratch.

Minishell Demo

How to run it

First you have to compile the project :

make

You can then run the program :

./minishell

A prompt will appear in the terminal, you can type in commands as you would with Bash. For example :

echo "Hello there !"

Features

  • Bash-like builtins (echo, cd, pwd, export, unset, env, exit)
  • Environment variables handling
  • Redirections (<, >, <<, >>)
  • Pipes |
  • Launch executables when given a relative/absolute path
  • Also search for executables in the PATH
  • Parameter expansion, quotes handling
  • Signal handling (ctrl-c, ctrl-d, ctrl-)
  • Commands history

About

Bash-like simple shell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 97.5%
  • Makefile 2.5%