Giter VIP home page Giter VIP logo

minishell's Introduction

Minishell

The minishell project is a simple bash implementation. The project is a part of the School 21 curriculum. The project is written in C.

Table of Contents

About

The minishell is a simple bash implementation with a few built-in commands. The project is written in C. The minishell supports the following built-in commands:

  • echo (with -n option)
  • cd (with only 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)

The minishell also supports the following features:

  • Command line editing
  • Signal handling (Ctrl-C, Ctrl-D, Ctrl-\\)
  • Environment variables
  • Redirections (>, >>, <, <<)
  • Pipes (|)
  • Exit status ($?)
  • Separators (;)
  • Quotes (' and ")
  • Logical operators (&& and ||)
  • Wildcards (* and ?)

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

What things you need to install the software and how to install them.

gcc >= 7.5.0
make >= 4.1
sudo apt-get install make
sudo apt-get install gcc

Installing

A step by step series of examples that tell you how to get a development env running.

Clone the repository.

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

cd minishell

Build the project.

make

or build with bonus.

make bonus

Run the project.

./minishell

Running the tests

Explain how to run the automated tests for this system.

make test

Usage

After running the program, you will see the minishell prompt. You can enter the command you want to execute. Supported commands and features described in the About section. You can exit the minishell by typing the exit command.

Built Using

  • C - Programming language
  • Make - Build automation tool

Authors

This project was developed by:

drawing LudwigAndreas
drawing AndrefHub

Acknowledgements

  • School 21 - Educational institution
  • 42 - Educational institution
  • Bash - GNU Project's shell
  • Linux - Operating system kernel
  • Man - Manual pages for Linux

License

This project is licensed under the School 21 License - see the LICENSE file for details.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.