Skip to content

044apde/minishell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mini-shell (bash like)

[info]
U CAN USE ON MAC OS
⚠️ not tested on LINUX
📘 minishell LOG HERE!

[USAGE]
make
./minishell

[Features]

  • Display a prompt when waiting for a new command.
  • Have a working history.
  • Search and launch the right executable (based on the PATH variable or using a relative or an absolute path).
  • Not interpret unclosed quotes or special characters which are not required by the\ subject such as \ (backslash) or ; (semicolon).
  • Handle ’ (single quote) which should prevent the shell from interpreting the metacharacters in the quoted sequence.
  • Handle " (double quote) which should prevent the shell from interpreting the metacharacters in the quoted sequence except for $ (dollar sign).
  • Implement pipes (| character). The output of each command in the pipeline is connected to the input of the next command via a pipe.
  • Handle environment variables ($ followed by a sequence of characters) which should expand to their values.
  • Handle $? which should expand to the exit status of the most recently executed foreground pipeline.
  • Handle ctrl-C, ctrl-D and ctrl-\ which should behave like in bash.
  • Built-in function: cd, echo, env, exit, export, pwd, unset

[Image]
Screen Shot 2023-10-17 at 5 44 29 PM

About

mini-shell program

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published