GithubHelp home page GithubHelp logo

my_minishell's Introduction

Documentation du Projet Minishell

L’objectif de ce projet est de créer un shell minimaliste. Ça sera votre petit bash à vous. Vous en apprendrez beaucoup sur les processus et les descripteurs de fichier.

Introduction:

  • ⚙️ Instalation
  • 💻 Fonctionnalités
  • 📜 Sources

⚙️ Instalation:

  • cloner le repo: git clone [email protected]:El-cmd/My_MiniShell.git
  • Asurez-vous d'avoir la bibliotheque readline d'inclus sur votre apapreil ou intallez la. ⚠️ Si vous etes sur IOS abandonner cette idee. Elle n'est ni inclus ni installable sur cet OS.
  • Compiler le: make
  • Et enfin lancez le: ./minishell

💻 Fonctionnalités:

  1. Gere les signaux: Ctrl-C, Ctrl-D et Ctrl-\:
  • Ctrl-C = affiche un nouveau prompt sur une nouvelle ligne.
  • Ctrl-D = quitte le shell.
  • Ctrl-\ = ne fait rien.
  1. Gere les builtins: echo, pwd, cd, env, export, unset, exit:
  • echo = avec l’option -n et sans.
  • pwd = Affiche le repertoire courant.
  • cd = change de repertoire.
  • env = Affiche les variables d'environnements.
  • export = Ajoute une nouvelle variable d'environnement, sans arguments: affiche toute les variables dans l'ordre alpha-numerique.
  • unset = Supprime une variable d'environnement.
  • exit = Quitte le programme avec un retour 0 par defaut, ou un retour de l'argument donné, exemple exit 5 retourne 5.
  1. Gere les pipes |.
  • Les pipes, sont des opérateurs essentiels dans le shell Unix/Linux. Ils permettent de chaîner plusieurs commandes ensemble, permettant ainsi de traiter les données de manière fluide et efficace.
  • Exemple: cat donnees.txt | grep "important" | wc -l
  1. Gere les redirections >, <, >> et <<.
  • Les redirections sont des techniques permettant de manipuler le flux d'entrée et de sortie des commandes dans un shell Unix/Linux.
  • Exemple: commande > fichier_de_sortie.txt

📜 Sources

my_minishell's People

Contributors

el-cmd avatar

Watchers

 avatar

my_minishell's Issues

Invalid read

On retrouve bien trop souvent ce invalid read, il faudrai le patch pour regler bien des soucis je pense !

Capture d’écran 2023-09-05 à 17 13 47

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.