Skip to content

dvan-kle/minishell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

171 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minishell - A Simple Unix Shell Replica

Welcome to Minishell! This project is a basic replica of a Unix shell, specifically inspired by Bash, and is implemented in C.

Key Features

  • Command Execution: Execute user commands and executables using the execv system call.
  • Built-in Commands: Includes implementations of essential shell commands like cd, pwd, echo, export, unset, exit, and env.
  • Pipes and Redirections: Supports basic pipe functionality and input/output redirection.
  • Signal Handling: Basic handling of signals for better control over shell behavior.
  • Environment Management: Handles environment variables, allowing users to view, modify, and maintain them.

Usage

  1. Clone this repository:
    git clone https://github.com/dvan-kle/minishell.git
  2. Compile the project using the provided Makefile:
    make
  3. Run the shell:
    ./minishell

Minishell provides a command-line interface that behaves similarly to Bash.

Examples

ls -l
cat Makefile | grep 'a'
env | grep HOME
export program=minishell
exit 100

About

A simple UNIX shell implementation that mimics basic shell behavior, handling commands, piping, redirection, and environment variables.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors