fix: redirection file == redirection sign

This commit is contained in:
Camille Chauvet
2023-04-04 13:56:21 +02:00
parent 0bf045d4ab
commit fdfe1c8b95
3 changed files with 37 additions and 12 deletions

View File

@ -6,7 +6,7 @@
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/27 13:44:38 by cchauvet #+# #+# */
/* Updated: 2023/03/29 19:31:35 by cchauvet ### ########.fr */
/* Updated: 2023/04/04 13:50:18 by alouis-j ### ########.fr */
/* */
/* ************************************************************************** */
@ -83,7 +83,11 @@ int ft_cmd_parser(t_data *data, char *cmd_str)
ft_eprintf("minishell: malloc failed\n");
return (1);
}
ft_redirection(data, cmd, cmd_str);
if (ft_redirection(data, cmd, cmd_str))
{
ft_cmddel(cmd);
return (1);
}
if (ft_args_parse(cmd_str, cmd))
{
ft_cmddel(cmd);