Skip to content

P1tayaa/minishell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

165 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minishell

Minishell is a custom shell developed in C as part of the 42 curriculum. It replicates basic shell functionality, allowing for command execution, piping, environment variable handling, and more. This project was a collaborative effort.

Contributors

Features

  • Prompt & History: Displays a prompt and stores a command history.
  • Command Execution: Finds and executes commands based on $PATH, or using relative or absolute paths.
  • Signal Handling: Handles ctrl-C, ctrl-D, and ctrl-\ similar to bash.
  • Quotes & Redirection:
    • Manages single (') and double (") quotes.
    • Supports input/output redirections (<, >, <<, >>) and pipes (|).
  • Environment Variables: Expands $ variables and $? for exit status.
  • Built-ins: Implements essential commands (echo, cd, pwd, export, unset, env, and exit).

Installation

  1. Clone the repository:
    git clone https://github.com/P1tayaa/minishell.git
    cd minishell
    make
    ./minishell

About

Minishell by Samuel Boulain (p1tayaa) and Oscar Mathot (omathot)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors