Skip to content

[minishell] project school 42. The goal of this project is to create a simple shell. You are going to learn a lot about processes and file descriptors.

Notifications You must be signed in to change notification settings

osmosx/minishell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minishell

Compilation:

make

Run:

./minishell

Implemented

  • Builtins functions:
    • cd with only a relative or absolute path.
    • pwd with no options.
    • echo with -n option.
    • export with no options.
    • unset with no options.
    • env with no options.
    • exit with no options.
  • Redirections:
    • < redirect input.
    • > redirect output.
    • >>redirect output with append mode.
  • Pipes | the output of each command in the pipeline is connected via a pipe to theinput of the next command.
  • Environment variables ($ followed by characters) expand to their values.
  • $? expands to the exit status of the most recently executed foreground pipeline.
  • Signals work like in bash. When interactive:
    • Ctrl + C will print a new prompt on a newline.
    • Ctrl + D will exit the shell.
    • Ctrl + \ will do nothing.

About

[minishell] project school 42. The goal of this project is to create a simple shell. You are going to learn a lot about processes and file descriptors.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages