This commit is contained in:
2024-04-24 19:17:24 +02:00
parent 2cbb079036
commit 5810e1c970
8 changed files with 35 additions and 7 deletions

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/05 18:17:25 by marde-vr #+# #+# */
/* Updated: 2024/04/24 15:17:58 by tomoron ### ########.fr */
/* Updated: 2024/04/24 19:13:12 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -73,6 +73,7 @@ void execute_command(t_msh *msh, char **cmd_args)
env = env_to_char_tab(msh->env);
if (env)
{
set_echoctl(msh->echoctl);
if (execve(msh->tokens->value, cmd_args, env))
perror("execve");
}