This commit is contained in:
mdev9
2024-03-23 10:35:39 +01:00
parent 7b6c75b5c3
commit 568df14b4a
3 changed files with 23 additions and 3 deletions

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/05 18:20:21 by marde-vr #+# #+# */
/* Updated: 2024/03/21 11:03:47 by tomoron ### ########.fr */
/* Updated: 2024/03/23 10:18:36 by marde-vr ### ########.fr */
/* */
/* ************************************************************************** */
@ -47,7 +47,8 @@ int cmd_is_builtin(t_msh *msh, char *cmd_token)
}
else if(!ft_strcmp(cmd_token,"export"))
{
ft_export(msh);
if (!(msh->in_type == PIPE || msh->out_type == PIPE))
ft_export(msh);
return(1);
}
else if(!ft_strcmp(cmd_token, "unset"))