Skip to content

This project is a Bash-like shell for Linux/macOS — an exercise from the 42School curriculum called Minishell. Try it on Gitpod!

Notifications You must be signed in to change notification settings

smallkaa/minishell

Repository files navigation

Try it!

Open in Gitpod

Wiki Shell-Rebuild

Error tests

valgrind --track-fds=yes ./minishell
valgrind  --leak-check=full ./minishell

Testers to try with

https://github.com/LucasKuhn/minishell_tester
https://github.com/zstenger93/42_minishell_tester

Use supression file to avoid readline() leaks

valgrind --leak-check=full --show-leak-kinds=all --suppressions=mshell.supp ./minishell

all erros + supp

valgrind --leak-check=full --trace-children=yes --gen-suppressions=all --show-leak-kinds=all --track-fds=yes  --error-limit=no --suppressions=mshell.supp ./minishell

all errors

valgrind --leak-check=full  --track-origins=yes  --trace-children=yes --gen-suppressions=all --show-leak-kinds=all --track-fds=yes --error-limit=no  ./minishell

Find all memory allocation functions

grep -rnE '\b(malloc|calloc|ft_calloc|realloc|ft_realloc|strdup|ft_strdup|strndup|ft_strndup|ft_substr|asprintf|vasprintf)\b' ./src

About

This project is a Bash-like shell for Linux/macOS — an exercise from the 42School curriculum called Minishell. Try it on Gitpod!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages