feature: added execution of commands from path

This commit is contained in:
Tanguy MAZE
2019-09-27 17:00:03 +02:00
parent aa8e971688
commit 58459bc0c1
5 changed files with 209 additions and 13 deletions

View File

@@ -6,7 +6,7 @@
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/09/19 17:08:46 by tmaze #+# #+# */
/* Updated: 2019/09/26 16:48:49 by tmaze ### ########.fr */
/* Updated: 2019/09/27 16:12:10 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
@@ -75,8 +75,7 @@ int main(void)
}
if (i == S_BIN)
{
// exec cmd
ft_printf("exec %s...\n", argv[0]);
exec_cmd(argv, &env);
}
}
ft_del_words_tables(&argv);