added basic env & setenv commands

This commit is contained in:
Tanguy MAZE
2019-01-13 19:03:08 +01:00
parent b60be696b0
commit 36d7fc342d
10 changed files with 228 additions and 24 deletions

View File

@@ -6,7 +6,7 @@
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/11/18 13:09:55 by tmaze #+# #+# */
/* Updated: 2019/01/12 17:26:33 by tmaze ### ########.fr */
/* Updated: 2019/01/13 16:59:24 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
@@ -126,7 +126,7 @@ int main(void)
return (2);
}
ft_strdel(&cmd);
exec_cmd(tab_cmd, lst_env);
exec_cmd(tab_cmd, &lst_env);
ft_del_words_tables(&tab_cmd);
}
ft_lstdel(&lst_env, &ft_lstdelenvelem);