fix: redirection maybe final commit maybe ??
This commit is contained in:
parent
1c8892983e
commit
dd49432d0d
@ -6,7 +6,7 @@
|
|||||||
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
|
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2023/03/27 13:44:38 by cchauvet #+# #+# */
|
/* Created: 2023/03/27 13:44:38 by cchauvet #+# #+# */
|
||||||
/* Updated: 2023/03/28 15:42:37 by cchauvet ### ########.fr */
|
/* Updated: 2023/03/29 19:31:35 by cchauvet ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@ -83,11 +83,7 @@ int ft_cmd_parser(t_data *data, char *cmd_str)
|
|||||||
ft_eprintf("minishell: malloc failed\n");
|
ft_eprintf("minishell: malloc failed\n");
|
||||||
return (1);
|
return (1);
|
||||||
}
|
}
|
||||||
if (ft_redirection(data, cmd, cmd_str))
|
ft_redirection(data, cmd, cmd_str);
|
||||||
{
|
|
||||||
ft_cmddel(cmd);
|
|
||||||
return (0);
|
|
||||||
}
|
|
||||||
if (ft_args_parse(cmd_str, cmd))
|
if (ft_args_parse(cmd_str, cmd))
|
||||||
{
|
{
|
||||||
ft_cmddel(cmd);
|
ft_cmddel(cmd);
|
||||||
|
Loading…
Reference in New Issue
Block a user