8000 GitHub - tobeshota/minishell: Reimplementation of bash🐚
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tobeshota/minishell

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

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 with/without single/double quotes (e.g. $PWD, '$PATH', "$HOME" ..)
  • 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/tobeshota/minishell.git

Change directory to this repository.

cd minishell

Compile to create an executable file: minishell.

make

Execute.

./minishell

About

Reimplementation of bash🐚

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 97.2%
  • Makefile 2.8%
0