Giter VIP home page Giter VIP logo

42_minishell's Introduction

42_minishell

Developing a shell

Project in pair with Auguste Faure.

*************************** ENGLISH ***************************

The Project:

The goal of this program is to implement a shell as close to bash as possible.
But also to use the interactive and non-interactive signals
such as ctrl + c , ctrl + d and ctrl + \.

Prerequisites

  • A Unix-based operating system (Linux)
  • GCC compiler
  • GNU Make

Implementation of shell commands such as : ◦ echo and the -n option
cd only with a relative or absolute path
pwd without any options
export without any option
unset without any option
env without any option or argument
exit without any option
echo $?

You can play with redirects: ◦ < must redirect the input.
> must redirect the output.
<< must receive a delimiter and read the given input until
it encounters a line containing the delimiter. However, the history
does not have to be updated!
>>must redirect the output to append mode
and the | pipes.

Some examples of commands :

example

*************************** FRANCAIS ***************************

Le Projet

Le but de ce programme est d'implémenter un shell aussi proche de bash que possible.
Mais aussi d'utiliser les signaux interactifs et non-interactifs
tels que ctrl + c , ctrl + d et ctrl + \.

Prérequis

  • Un système d'exploitation basé sur Unix (Linux)
  • Un compilateur GCC
  • Un GNU Make

Implémentation des commandes shell :
echo et l'option -n.
cd uniquement avec un chemin relatif ou absolu
pwd sans aucune option
export sans aucune option
unset sans aucune option
env sans option ni argument
exit sans aucune option
echo $?

Vous pouvez jouer avec les redirections :
< doit rediriger l'entrée.
> doit rediriger la sortie.
<< doit recevoir un délimiteur et lire l'entrée donnée jusqu'à ce que
qu'il rencontre une ligne contenant le délimiteur. Cependant, l'historique
ne doit pas être mis à jour !
>> doit rediriger la sortie vers le mode append.
et les | pipe.

Some examples of commands :

example

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.