Fix showing single quotes upon expansion
authorLukas Jiriste <ljiriste@student.42prague.com>
Fri, 23 Aug 2024 14:19:22 +0000 (16:19 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Fri, 23 Aug 2024 14:26:08 +0000 (16:26 +0200)
commitb95ba5d1ffb8075c9945ddfa047d8fabb1df20c3
tree36e286e015745f16b181b0ab3069966ec628be1b
parenta2162f794781ba8be06c1a01bc2d23ee2c11c081
Fix showing single quotes upon expansion

In order for the wildcard expanded words not to be expanded again as
variables, single quotes were used for variable expansion. This however
caused single quotes to show when variable was expanded inside double
quotes.
The solution is to only quote the variables in wildcard expansion.
inc/minishell.h
src/execution.c
src/wildcards.c