Skip to content

Latest commit

 

History

523 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minishell

minishell is one of the 42 projects.
It is a reimplementation of bash.


Description

We implemented the main features of bash.

  • Search and launch the right executable (e.g. ./a.out, /bin/ls ..)
  • builtins: echo, cd, pwd, export, unset, env, exit
  • File I/O management by redirection: >, >>, <, <<
  • interprocess communication by pipes: |
  • signal: Ctrl-C, Ctrl-D, Ctrl-\
  • expand environment variables (e.g. $PWD, $PATH ..)
  • expand exit status: $?
  • expand wildcards: *
  • control operators: ;, &&, ||

Usage

Requirements

  • readline (It is used where the shell accepts commands)
brew install readline

Installation

Clone this repository.

git clone https://github.com/JIA0010/minishell.git

Change directory to this repository.

cd minishell

Compile to create an executable file: minishell.

make

Execute.

./minishell

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages