[ 🇬🇧 ] 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.
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.
- Commands execution
- Command history
- Error_code
- Environment variables
- Built-ins
cd
without argument, with relative or absolute path,-
,--
and~
clear
with no optionsecho
with option-n
env
with no options or argumentsexport
with no options but with argumentsexit
with no options but with optional specified error codepwd
with no optionsunset
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