tdameros / 42-minishell

As beautiful as a shell
3 stars 0 forks source link

CRASH + LEAKS #3

Closed sabitbol42 closed 2 weeks ago

sabitbol42 commented 6 months ago

Hello, while testing some functionalities i noticed few problems and a crash:

echo /*/*/*/*/*/*/*/*/*/* into ctrl + C = crash

also simple wildcard doesnt works as expected such as :

abc*abc*abc

tdameros commented 6 months ago

Matching detection with wildcards involves 2-3 design errors. However, we just need to correct the function that indicates whether there is a match or not:

https://github.com/tdameros/42-minishell/blob/main/src/expansions/wildcards/match.c