tbrebion / minishell

This project is from 42 school commom core. Its aim was to create a posix bash like shell.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

minishell - done in collab with chozeur

This project is from 42 school commom core. Its aim was to create a posix bash like shell.

Rules

  • prompt :

    • print a prompt waiting for a new command
    • must have a working history
  • redirections :

    • < must redirect the input
    • > must redirect the output
    • << must act as an heredoc
    • >> must redirect the output in append mode
  • pipes

    • each pipeline's command's output must be connected to the next command's input with a pipe ( | )
  • environment variable

    • $VAR must be expanded
  • $?

    • must be substituted by the last pipeline's error status
  • signals

    • handle ctrl-c ctrl-d ctrl-\ as bash does
  • builtins

    • echo with -n option
    • cd with an absolute or relative path
    • pwd without any option
    • export without any option
    • unset without any option
    • env without any option nor argument
    • exit without any option

About

This project is from 42 school commom core. Its aim was to create a posix bash like shell.


Languages

Language:C 94.3%Language:Makefile 5.7%