Skip to content

Latest commit

 

History

History
38 lines (33 loc) · 1.18 KB

README.md

File metadata and controls

38 lines (33 loc) · 1.18 KB

minishell

Codam [42 Network] project: the objective of this project is to create a simple shell

Instructions

  • run make to compile
  • ./minishell to launch program

Project specifications

  • show a prompt when waiting for a new command
  • search and launch the right executable (based on the PATH variable or by using relative or absolute path) like in bash
  • implement the builtins like in bash:
    • echo with option ’-n’
    • cd with only a relative or absolute path
    • pwd without any options
    • export without any options
    • unset without any options
    • env without any options and any arguments
    • exit without any options
  • ; in the command should separate commands like in bash
  • ’ and " should work like in bash except for multiline commands
  • redirections < > “>>” should work like in bash except for file descriptor aggregation
  • pipes | should work like in bash
  • environment variables ($ followed by characters) should work like in bash
  • $? should work like in bash
  • ctrl-C, ctrl-D and ctrl-\ should have the same result as in bash

Skills

  • imperative programming
  • Unix

Objectives

  • Unix logic