Skip to content

aandom/minishell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minishell 42 Project

Table of Contents

Introduction

Minishell is a fundamental project in the 42 school curriculum, designed to introduce students to the world of systems programming and command-line interfaces. In this project, we have are have created a simple shell that mimic the behavior of the bash shell using C programing language.

Features

  • Command Execution: Execute shell commands.
  • Pipelines: Implementing simple command pipelines allows users to chain commands together, facilitating more complex operations.
  • Redirections: Support input and output redirections.
  • Environment Variables: Handle environment variables.
  • Built-in Commands: Implement built-in shell commands like cd, echo, env, export, unset, exit and pwd.
  • Error Handling: Provide meaningful error messages for user input.
  • Signal Handling: Handle ctrl-C, ctrl-D and ctrl-\ which should behave like in bash.

Getting Started

Prerequisites

  • GCC (GNU Compiler Collection)
  • Make

Installation

  1. Clone the repository:

    git clone https://github.com/aandom/minishell.git
    
    
  2. Navigate to the project directory:

    cd minishell
    
    
  3. Build the project:

    make
    
    

Usage

To run the Minishell, use the following command:

./minishell

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •