A-Mahla / Mini-Shell

A Unix-Shell reimplemented in C inspired by Bash POSIX.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mini-Shell - Minimalistic and Elegant Unix-inspered Shell

mybadge

The aim of this project is to create a functional Shell to better understand Unix logic.

🔧 System Requirements:

Usage

To run the Mini-Shell, open your terminal and run this command:

cd /path/to/project/directory
make && ./minishell

Functionalities implemented

  • Redirections: <, >, <<, >>/
  • Pipes : |.
  • Expansion : $ for environment variables.
  • Exit Status : $?.
  • Simple Quotes : Prevent the shell from interpreting the meta-characters in the quoted sequence.
  • Double Quotes : Prevent the shell from interpreting the meta-characters in the quoted sequence except for $.
  • Signals : ctrl-C, ctrl-D and ctrl-\.
  • Command History.

Builtins Implemented

  • echo with option -n.
  • cd with only a relative or absolute path.
  • pwd with no options.
  • export with no options.
  • unset with no options.
  • env with no options or arguments.
  • exit with no options.

About

A Unix-Shell reimplemented in C inspired by Bash POSIX.


Languages

Language:C 98.1%Language:Makefile 1.9%