Skip to content

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

Notifications You must be signed in to change notification settings

chozeur/minishell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minishell - done in collab with tbrebion flcarval's 42 minishell Score

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published