Skip to content
/ minishell Public

Minishell is a project from the 2nd phase of the common core of 42 School. The goal of this project was to create a Shell similar to bash, using only C.

Notifications You must be signed in to change notification settings

a-cs/minishell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minishell

Welcome to Mi-Shell


Introduction

Minishell is a project from the 2nd phase of the common core of 42 School.

The goal of this project was to create a Shell similar to bash, using only C.


Group Members

Anderson Carneiro Sousa

Rodrigo Longhi


How to start

*the code has been tested only on Linux

Clone this repository

git clone https://github.com/a-cs/minishell.git
cd minishell

Install the readline library

sudo apt-get install libreadline-dev

Compile

make

Run

./minishell

Demo

minishell *To watch the video, click on the gif.


Builtins commands

commands

description

echo Print the arguments to the standart output. *Accepts the -n flag.
cd Change the shell working directory.
pwd Print the current working directory.
export Export variables to shell.
unset Delete variable of the shell.
env Print the environment.
exit Exit the shell

Implemented features

  • Execute linux commands
  • Handle environment variables and $?
  • Handle double quotes
  • Handle single quotes
  • Handle redirects
  • Handle pipes
  • Handle Crtl + C, Crtl + D and Crtl + \ like bash
  • History

About

Minishell is a project from the 2nd phase of the common core of 42 School. The goal of this project was to create a Shell similar to bash, using only C.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published