Skip to content

Wongoose/minishell-42KL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minishell-42KL

1. Abstract

The project "Minishell" presents a replica of a bash environment, implementing numerous features to provide a functional and user-friendly shell experience. The Minishell project encompasses various functionalities, including:

  • Display prompt for new command
  • History management
  • Executable search and launch based on PATH variable or using relative/absolute path
  • Handling of special characters and quoting rules
  • Redirections
  • Pipes for command chaining
  • Environment variable expansion.
  • Keyboard interrupts such as ctrl-C, ctrl-D and ctrl-\
  • Logical operators (&& and ||) with parenthesis for command priorities
  • Wildcards (*) in the current working directory.

2. Setup

1. Do ensure that readline is installed:

1.1 On Linux

    sudo apt install libreadline-dev

1.2 On Mac

    brew install readline

1.3 On Windows

    // For Cygwin, run the Cygwin installer and select the libreadline-devel package during the installation process.
    // For MinGW, use the package manager mingw-get
           mingw-get install msys-readline

2. Git clone and run make in project root directory

    make

3. Run the executable in project root directory

    ./minishell

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published