Skip to content

Unix shell implemented in C as part of the 42 School curriculum

Notifications You must be signed in to change notification settings

LaraKraemer/minishell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

162 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minishell

A simple Unix shell implemented in C as part of the 42 School curriculum.
This project replicates the basic behavior of Bash, including execution, redirection, piping, and built-in commands. This project is developed as a team collaboration by Daria and Lara.

Features

  • Interactive prompt with history (readline)
  • Built-in commands:
    • echo, cd, pwd, export, unset, env, exit
  • Redirections:
    • Input <, Output >, Append >>, Heredoc <<
  • Pipes (|) between commands
  • Environment variable expansion ($VAR, $?)
  • Signal handling (Ctrl-C, Ctrl-D, Ctrl-\)
  • Command execution with PATH resolution

Compilation

make

Usage

./minishell

minishell$ echo Hello World
Hello World

minishell$ ls | grep .c > out.txt

minishell$ exit

Resources

About

Unix shell implemented in C as part of the 42 School curriculum

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •