AlexDos-42 / minishell

42 project - Working with @Emilie5520

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

header

The objective of this project is to create a simple shell.

Compilation && Execution

To run the project

make && ./minishell

Implementation

  • 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

  • It must 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 " work like in bash except for multiline commands

  • Redirections < > “>>” work like in bash except for file descriptor aggregation

  • Pipes | work like in bash

  • Environment variables ($ followed by characters) work like in bash

  • $? work like in bash

  • ctrl-C, ctrl-D and ctrl-\ have the same result as in bash

About

42 project - Working with @Emilie5520


Languages

Language:C 97.4%Language:Makefile 2.6%