|
|
@ -6,7 +6,7 @@ |
|
|
|
/* By: mea <mea@student.42.fr> +#+ +:+ +#+ */ |
|
|
|
/* +#+#+#+#+#+ +#+ */ |
|
|
|
/* 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) |
|
|
|