Skip to content

MaximeJC/42-CommonCore_03.2025_MiniShell

Repository files navigation

⚠️ Disclaimer

[ 🇬🇧 ] Please do not copy-paste this code. In this way, you won't learn a lot. Instead, you can use it to understand how to do some tricky part, but try to redo it by your own. Just to let you know, some files may be incorrect. Some bugs may have passed through, or subject may have changed since I did this project.

[ 🇫🇷 ] S'il vous plait, ne copier-coller pas ce code. De cette manière, vous n'apprendrez pas grand chose. A la place, vous pouvez l'utiliser pour comprendre certaines parties plus complexes du sujet, mais essayez de le refaire par vos propres moyens. Pour information, certains exercices pourraient être incorrects. Quelques bugs pourraient avoir réussi à passer au travers les mailles du filet, ou le sujet a peut-être changé depuis que j'ai complété le projet.


42-CommonCore_03.2025_MiniShell

Welcome to one of the biggest projects of 42's common core, MiniShell!

The goal of this project is to recode main bash features. Using all the skills acquired so far from the beginning of the common core, especially "Pipex", MiniShell represents a milestone announcing nearly half of the common core.

Project features

  • Commands execution
  • Command history
  • Error_code
  • Environment variables
  • Built-ins
    • cd without argument, with relative or absolute path, -, -- and ~
    • clear with no options
    • echo with option -n
    • env with no options or arguments
    • export with no options but with arguments
    • exit with no options but with optional specified error code
    • pwd with no options
    • unset with no options but with arguments
  • Pipes
  • Redirections (<, <<, >, >>)
  • Signals (ctrl-C, ctrl-D, ctrl-\)
  • Single quotes
  • Double quotes

Common Core Rank 03 - Completed in March 2025
Code by nicolmar and me

About

42 Common Core Rank 03 - "MiniShell", a big shell project of the common core

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •