Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/servettonga/mini_shell

This project is about creating a simple shell in C.
https://github.com/servettonga/mini_shell

c clang cli shell

Last synced: about 13 hours ago
JSON representation

This project is about creating a simple shell in C.

Awesome Lists containing this project

README

        

# minishell

A simple Unix shell implementation written in C, recreating basic functionalities of bash.

## Features

- Command execution with absolute and relative paths
- Builtin commands: `echo`, `cd`, `pwd`, `export`, `unset`, `env`, `exit`
- Signal handling (`ctrl-C`, `ctrl-D`, `ctrl-\`)
- Input/Output redirections (`<`, `>`)
- Pipes (`|`)
- Environment variables
- Command history
- Quote handling (single and double)
- Exit status `$?`

## Brief overview

![minishell_bg](https://github.com/user-attachments/assets/a1ca7518-0489-4123-82ed-dcc76bfc622d)