Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 2.05 KB

File metadata and controls

45 lines (35 loc) · 2.05 KB

MiniShell

This is a project from 42 common core developed with Djo-msv

Developed skills

Skill Wiki Link
Bash Bash
Makefile Makefile
C C
IPC Inter-process Communication
Tokenization Lexical Analysis / Tokenization

Requirements

This projects aims at replicating a very basic shell with :

  • basic interactive display with history
  • interpretation and execution of commands (with name or absolute path)
  • interpretation of variables
  • interpretation of wildcard * for the current directory
  • handling of single and double quotes
  • handling of redirections and heredoc (<, <<, >>, >)
  • handling of pipes
  • handling of execution status
  • handling of EOF and signals SIGINT, SIGQUIT

A few builtin commands with no options were also implemented :

  • cd
  • pwd
  • export
  • unset
  • env echo with option n was also implemeted.

Program Flow

overview

Setup

make
./minishell