Skip to content

mtriston/minishell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

120 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minishell

My shell implementation.

Features

  • Promt with username and current directory.
  • Search and launch the right executable (based on the PATH variable or by using relative or absolute path) like in bash
  • The builtins like in bash:
    • echo with option ’-n’
    • cd with only a relative or absolute path
    • pwd without any options
    • export without any options
    • unset without any options
    • env without any options and any arguments
    • exit without any options
  • ; in the command separate commands like in bash
  • ’ and " work like in bash include multiline commands
  • Redirections < > “>>” work like in bash except for file descriptor aggregation
  • Pipes | work like in bash
  • Environment variables ($ followed by characters) work like in bash
  • $? work like in bash
  • ctrl-C, ctrl-D and ctrl-\ have the same result as in bash

How to install

git clone https://github.com/sudo-spivak/minishell.git
cd minishell
make
./minishell

Usage

gif with a demonstration

About

My shell implementation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •