diff --git a/sources/_helper_main.c b/sources/_helper_main.c index d064c78a..30ffdcef 100644 --- a/sources/_helper_main.c +++ b/sources/_helper_main.c @@ -6,7 +6,7 @@ /* By: rparodi +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/09/06 16:31:41 by rparodi #+# #+# */ -/* Updated: 2024/10/10 18:50:37 by maiboyer ### ########.fr */ +/* Updated: 2024/10/12 16:48:46 by maiboyer ### ########.fr */ /* */ /* ************************************************************************** */ @@ -82,6 +82,7 @@ void ft_take_args(t_state *state) line_history_add(state->str_input); if (parse_str(state)) { + state->last_exit = 2; mem_free(state->str_input); continue ; } diff --git a/sources/main.c b/sources/main.c index c6386459..dee91379 100644 --- a/sources/main.c +++ b/sources/main.c @@ -6,7 +6,7 @@ /* By: rparodi +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/03/28 14:40:38 by rparodi #+# #+# */ -/* Updated: 2024/10/11 22:23:14 by maiboyer ### ########.fr */ +/* Updated: 2024/10/12 16:47:58 by maiboyer ### ########.fr */ /* */ /* ************************************************************************** */