Skip to content

AlexDos-42/minishell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published