Skip to content

mc-localhost/minishell

Repository files navigation

minishell is a 42 team project aimed at developing a mini bash. i was responsible for building the parser, some of the built-in commands, handling signals and garbage collection, and tetsing

the requirements

  • custom prompt and history: shows that the user is using minishell and waits for user input, up arrow key displays previous prompt
  • command execution: supports both system commands (ls, grep, etc.) and
  • built-in commands:
    • echo (with -n support)
    • cd
    • pwd
    • export
    • unset
    • env
    • exit
  • pipes (|) and redirections including here documents (<, >, >>, <<)
  • environment variables with proper expansion ($USER, $PATH, $?, etc.)
  • signal handling for ctrl-c, ctrl-d, and ctrl-\
  • error handling for invalid syntax and edge cases
tester result

About

it's a minishell. mini shell. mini. shell

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •