Skip to content

Latest commit

 

History

126 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MINISHELL

As beautiful as shell

Introduction

The aim of the project is to recreate a linux terminal from scratch using C programmming language.
In this very simple version, some of the features of a shell were implemented as environment variables, pipes and redirections.
The main goal is to have a good understanding of processes and learn more about file descriptors.

Development team:

      Roman - robitett
      Vitoria - vscabell

Usage

Build Instructions

$ git clone https://github.com/vscabell/minishell
$ cd minishell
$ make
$ ./minishell

Run the program

$ ./minishell

Functions

  • Show a prompt when waiting for a new command
  • Navigate through command history using up and down arrows
  • Builtin implementation:
    -echo (with flag -n)
    -cd (absolute and relative path)
    -pwd
    -export
    -unset
    -env
    -exit
  • Environment variables ($ followed by characters)
  • Simple quotes ' and double quotes " should work like in bash
  • Escape special chars with \
  • Multiples commands separated with semicolon ;
  • Pipes | (except for multiline commands)
  • Redirections <, >, >>
  • ctrl-C, ctrl-D and ctrl-\ signals must be handled
  • $? it should work like in bash.

About

As beautiful as shell. Project from 42 São Paulo

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages