anagmrebelo / 42_minishell

Recreate a simple shell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

minishell

ezgif com-video-to-gif-3

Project description:

Recreate a simple shell - group project with Micaela Rollo

Shell functionalities:

  • Displays a prompt when waiting for a new command
  • Has a working history
  • Searches and launches the right executable
  • Handles ’ which should prevent the shell from interpreting the meta- characters in the quoted sequence
  • Handles " which should prevent the shell from interpreting the meta- characters in the quoted sequence except for $
  • Implements redirections
  • Implements pipes
  • Handles environment variable which should expand to their values
  • Handles $? which should expand to the exit status of the most recently executed foreground pipeline
  • Handles ctrl-C, ctrl-D and ctrl-\ which should behave like in bash
  • Has implemented builtins:
    • echo with option -n
    • cd with only a relative or absolute path\
    • pwd with no options
    • export with no options
    • unset with no options
    • env with no options or arguments
    • exit with no options

Grade

100%

Usage

make
./minishell

About

Recreate a simple shell


Languages

Language:C 63.8%Language:TeX 17.3%Language:Perl 6.8%Language:Shell 6.7%Language:Roff 3.6%Language:Makefile 1.2%Language:M4 0.5%Language:C++ 0.2%