From ae7e103c898ce8d19762e48460702765c085f156 Mon Sep 17 00:00:00 2001 From: narnaud Date: Fri, 27 May 2022 09:37:38 +0200 Subject: [PATCH] fix: wrong behaviour for 13258unknow_var --- minishell.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/minishell.c b/minishell.c index 674c9cd..d142d87 100755 --- a/minishell.c +++ b/minishell.c @@ -6,7 +6,7 @@ /* By: mea +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/05/02 12:14:09 by narnaud #+# #+# */ -/* Updated: 2022/05/27 08:50:47 by narnaud ### ########.fr */ +/* Updated: 2022/05/27 09:35:57 by narnaud ### ########.fr */ /* */ /* ************************************************************************** */ @@ -65,11 +65,11 @@ void prompt(t_datas *datas, char *line) return ; cmd = parser(datas, lexer(datas, line), NULL); if (cmd) + { caller(datas, cmd); - else - ft_putstr_fd("Minishell: syntax error\n", 2); - free_cmd(cmd); - add_history(line); + free_cmd(cmd); + add_history(line); + } } int main(int argc, char **argv, char **envp)