GithubHelp home page GithubHelp logo

almayor / minishell Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 2.6 MB

A personal implementation of a minimal Linux shell

License: MIT License

C 81.30% Makefile 6.60% Python 12.10%
42 42school 21school minishell linux

minishell's Introduction

minishell

This project is part of the official curriculum at School 42.

Disclaimer

In School 42, almost every project must be written to comply with a coding standard (also known as the "Norm"). As a result, the implementation of certain parts may appear strange.

Overview

  • Official instructions
  • A personal implementation of a Linux shell with minimal functionality
    • builtins: cd, env, setenv, unsetenv, echo, exit
    • separation of commands with ;
    • management of SIGINT and SIGTERM
    • an informative user prompt
  • Only the following functions are allowed
    • malloc, free
    • access
    • open, close, read, write
    • opendir, readdir, closedir
    • getcwd, chdir
    • stat, lstat, fstat
    • fork, execve
    • wait, waitpid, wait3, wait4
    • signal, kill

Run

To compile, run

git clone https://github.com/almayor/minishell
cd minishell
git submodule --init --recursive
make

You can run unit tests with make test

Resources

Acknowledgements

We are grateful to the entire team behind School 42 and its Moscow branch, as well as to my fellow students for help and support.


If you have any questions, please contact me on Github.

minishell's People

Contributors

almayor avatar

Watchers

 avatar  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.