Skip to content

GiovannaCoqueiro/42cursus-minishell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42cursus

Minishell

minishell_badge/

Inside this repository, you can see all the code that has been created for the Minishell project, including the mandatory part and the incomplete bonus part. The project was done in collaboration with Beatriz Dile


Final score

push_swap_grade/

Mandatory

Create a program that works like a shell, following the next conditions.

  • Display a prompt when waiting for a new command
  • Have a working history
  • Search and launch the right executable(using relative path, absolute path or just the the name of the command)
  • Handle '
  • Handle "
  • Implement redirections: '<', '>', '<<', '>>'
  • Implemente pipes
  • Handle environment variables
  • Handle exit status with $?
  • Handle signals: 'ctrl-C', 'ctrl-\', 'ctrl-D'
  • Implement builtins: 'cd', 'pwd', 'echo', 'exit', 'unset', 'export, 'env'

you can run it with:

  $> ./minishell

Bonus

Bonus Status
Manage '||' and '&&' with parenthesis not implemented
Manage wildcards not implemented
Manage variables expansion inside ' and " implemented

Instructions to use

Clone this repository in you local computer using a terminal:
$> git clone [email protected]:GiovannaCoqueiro/42cursus-minishell.git [repository_local]

After cloning the project in your local reposiory you can run some commands you can find in Makefile:

  • $> make all: or just make compiles the project
  • $> make clean: deletes the object files created during compilation
  • $> make fclean: executes the clean command and also deletes the binary created
  • $> make re: executes the fclean command followed by the all command
  • $> make bonus: compiles the project
  • $> make rebonus: executes the fclean command followed by the rebonus command
  • $> make run: executes all and run the program
  • $> make val: executes all and run the program with valgrind

About

42 minishell project in process

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published