Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.
/ 42_minishell Public archive

Coder un bash (en plus simple).

License

Notifications You must be signed in to change notification settings

GOT-projects/42_minishell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42_minishell

But du projet

Coder un bash (en plus simple).

Détails

Partie obligatoire

  • Avoir un invite de commande avec un historique
  • Gestion de l'environnement
  • builtin:
    • echo (sans option sauf -n)
    • cd (chemin absolue et relatif)
    • pwd (sans option)
    • export (sans option)
    • unset (sans option)
    • env (sans option et argument)
    • exit
  • Gestion des signaux (SIGNINT, SIGQUIT)
  • Gestion des pipes
  • Gestion des redirection d'entrée et de sortie (<, <<, >, >>)

Bonus

  • Traduction du wildcard * in currente directory
  • Gestion des booléens && (and) et || (or)
  • Gestion des guillemets (quote)

Compilation

make        # compile mandatory part
make bonus  # compile with && and || and *
make fclean # remove all files compilation
  • Éxecution
./minishell # voila

Crédits

En collaboration avec waxdred.

Quelques petits tests (test pas les signaux) : tester