Skip to content

migueldar/42minishell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

244 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minishell

A Unix shell implementation written in C, developed as part of the 42 School curriculum. It replicates key features of standard shells like bash and zsh, focusing on process management, parsing, and terminal control; all built from scratch without external parsing libraries.

Features

  • Prompt with interactive input
  • Command execution with arguments and PATH resolution
  • Built-in commands: cd, echo, env, exit, export, pwd, unset
  • Pipes (|) and redirections (>, >>, <, <<)
  • Environment variable expansion ($VAR)
  • Quote handling (', ")
  • Signal handling for Ctrl-C and Ctrl-\
  • Command history

Build & Run

git clone https://github.com/migueldar/42minishell
cd 42minishell
make
./minishell

About

42 project about creating your own shell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors