Skip to content

onapoli/minimal-bash-replica

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minimal-bash-replica

Minimal shell taking bash as reference

  • Searches and launches the right executable based on PATH environment variable

  • Built-ins (echo, cd, pwd, export, unset, env, exit)

  • Quote functionality (’ and ")

  • Redirections (>, >>, < and <<)

  • Pipes (|)

  • Expansion of environment variables ($ followed by characters).

  • Wildcard functionality (*)

  • Management of signals ctrl-C, ctrl-D, and ctrl-\

  • Interactive (prompt) and non-interactive modes (scripts)

Compilation Requirements

  • GNU Compiler Collection (gcc)
  • GNU make utility
  • GNU readline library

Compilation instructions for Unix environments

Normal compilation
make
Bonus compilation (ads wildcard functionality)
make bonus
Execution
./minishell
Launch some unit tests
make && make unit_test
Clean all compilation files
make fclean

Developed alongside @hanjelito at 42 Madrid.

About

Minimal shell taking bash as reference

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published