Coder Social home page Coder Social logo

minishell's Introduction

Minishell

The existence of shells is linked to the very existence of IT.

At the time, all developers agreed that communicating with a computer using aligned 1/0 switches was seriously irritating.

It was only logical that they came up with the idea of creating a software to communicate with a computer using interactive lines of commands in a language somewhat close to the human language.

Thanks to Minishell, youโ€™ll be able to travel through time and come back to problems people faced when Windows didnโ€™t exist.

๐ŸŒณ - Project tree

.
โ”œโ”€โ”€ LICENSE
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ _notebook
โ”‚   โ”œโ”€โ”€ bash.ipynb
โ”‚   โ””โ”€โ”€ minishell.ipynb
โ”œโ”€โ”€ _subject
โ”‚   โ””โ”€โ”€ en.subject.pdf
โ”œโ”€โ”€ _tester
โ”‚   โ””โ”€โ”€ -> minishell_tester
โ””โ”€โ”€ project
    โ”œโ”€โ”€ Makefile
    โ”œโ”€โ”€ readline.supp
    โ”œโ”€โ”€ include
    โ”‚   โ””โ”€โ”€ minishell.h
    โ”œโ”€โ”€ lib
    โ”‚   โ”œโ”€โ”€ libft.a
    โ”‚   โ””โ”€โ”€ libft.h
    โ””โ”€โ”€ src
        โ”œโ”€โ”€ _lst
        โ”‚   โ”œโ”€โ”€ lst_add_back.c
        โ”‚   โ”œโ”€โ”€ lst_free.c
        โ”‚   โ”œโ”€โ”€ lst_free_last.c
        โ”‚   โ”œโ”€โ”€ lst_new.c
        โ”‚   โ”œโ”€โ”€ lst_set_to_head.c
        โ”‚   โ””โ”€โ”€ lst_set_to_last.c
        โ”œโ”€โ”€ main
        โ”‚   โ”œโ”€โ”€ bombfreeall.c
        โ”‚   โ”œโ”€โ”€ history.c
        โ”‚   โ”œโ”€โ”€ init.c
        โ”‚   โ”œโ”€โ”€ main.c
        โ”‚   โ”œโ”€โ”€ prompt.c
        โ”‚   โ””โ”€โ”€ signal_handler.c
        โ”œโ”€โ”€ parser
        โ”‚   โ”œโ”€โ”€ parsing_ext.c
        โ”‚   โ”œโ”€โ”€ parsing_system.c
        โ”‚   โ”œโ”€โ”€ variable_expand.c
        โ”‚   โ””โ”€โ”€ wildcards.c
        โ”œโ”€โ”€ executor
        โ”‚   โ”œโ”€โ”€ booleans.c
        โ”‚   โ”œโ”€โ”€ builtins.c
        โ”‚   โ”œโ”€โ”€ execution_system.c
        โ”‚   โ”œโ”€โ”€ fd_handler.c
        โ”‚   โ”œโ”€โ”€ heredoc.c
        โ”‚   โ”œโ”€โ”€ pipes.c
        โ”‚   โ””โ”€โ”€ redirections.c
        โ”œโ”€โ”€ errors
        โ”‚   โ”œโ”€โ”€ errors_handler.c
        โ”‚   โ”œโ”€โ”€ invalid_prompt.c
        โ”‚   โ””โ”€โ”€ syntax_errors.c
        โ””โ”€โ”€ variables
            โ”œโ”€โ”€ env_variables.c
            โ”œโ”€โ”€ export_variables.c
            โ””โ”€โ”€ shell_variables.c

๐Ÿ› ๏ธ - How to use?

git clone https://github.com/kichkiro/minishell.git
cd minishell/project
make
./minishell

and enjoy yourself...

๐Ÿ“ˆ - Tester

The tester minishell_tester performs more than 200 tests on the main features of the project, including:

  • Parsing
  • Commands
  • Redirects
  • Pipes
  • Exit Status
  • Mixed Mandatory
  • Booleans
  • Wildcards

The tester launches Bash and Minishell processes with the Popen method of Python's subprocess library, inputs the same test, captures the output, and compares it.

NOTE: The tester was tested on Ubuntu 20.04 LTS with Python version 3.8. Also, during development we tried to make it as generic as possible so that it can work on other minishell projects, but this does not guarantee that it will work correctly on all projects.

โš–๏ธ - License

See LICENSE

minishell's People

Contributors

kichkiro avatar

Watchers

 avatar

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.